summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authortarek <none@none>2009-10-27 16:23:23 +0100
committertarek <none@none>2009-10-27 16:23:23 +0100
commita5c7e0b5256ce53c49dabfe709b37f9644630b96 (patch)
tree6c7e66932a27d46aeebe8039bb8ac2de686c32e4 /setuptools/command/easy_install.py
parentd22b358d445d2634e6f502092a2b7ea3dcbcb8d6 (diff)
downloadpython-setuptools-git-a5c7e0b5256ce53c49dabfe709b37f9644630b96.tar.gz
make sure USER_SITE is listed as a sitedir in easy_install
--HG-- branch : distribute extra : rebase_source : f632d56d77b31a6b4f2183728e770d00005b0060
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 c83e4283..de6ea945 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1211,7 +1211,12 @@ def get_site_dirs():
site_lib = get_python_lib(plat_specific)
if site_lib not in sitedirs: sitedirs.append(site_lib)
+ if sys.version >= "2.6":
+ import site
+ sitedirs.append(site.USER_SITE)
+
sitedirs = map(normalize_path, sitedirs)
+
return sitedirs