Skip to content

Commit 2a890af

Browse files
committed
Stop using getsitepackages - it would appears it simply includes the prefix on some pythons.
1 parent 0ad2a08 commit 2a890af

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
3.3.7 (2021-06-23)
6+
------------------
7+
8+
* Fixed a bug with how ``stdlib`` is detected on Windows (at least).
9+
510
3.3.6 (2021-06-23)
611
------------------
712

src/hunter/const.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
SITE_PACKAGES_PATHS.add(sysconfig.get_path(name, scheme))
1616
except KeyError:
1717
pass
18-
if hasattr(site, 'getsitepackages'):
19-
SITE_PACKAGES_PATHS.update(site.getsitepackages())
2018
if hasattr(site, 'getusersitepackages'):
2119
SITE_PACKAGES_PATHS.add(site.getusersitepackages())
2220
if sys.version_info < (3, 10):

0 commit comments

Comments
 (0)