summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2016-05-21 10:19:48 -0400
committerJason R. Coombs <jaraco@jaraco.com>2016-05-21 10:19:48 -0400
commit09f117259ad08635aeab0a5e060b8a5d58c69729 (patch)
tree2ffe4ce808ec94d72cd9709d76faa9fb946c1645 /setuptools/command/easy_install.py
parenta0fc5c1ebb910f7ab01f8a86f0fb6cc4d61db66a (diff)
parent99fb3277660297459fbc080a8c6def98a8c52421 (diff)
downloadpython-setuptools-git-09f117259ad08635aeab0a5e060b8a5d58c69729.tar.gz
Merge pull request #586 from last-g/bug/shadowbug
Get real `site-packages`
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index ea5cb028..0bd3ea45 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1347,6 +1347,11 @@ def get_site_dirs():
if site.ENABLE_USER_SITE:
sitedirs.append(site.USER_SITE)
+ try:
+ sitedirs.extend(site.getsitepackages())
+ except AttributeError:
+ pass
+
sitedirs = list(map(normalize_path, sitedirs))
return sitedirs