aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-19 16:21:25 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-19 16:21:25 +0200
commit7423fbf04e7c20b79c4c1304069b312355777a1f (patch)
tree63cef4604d8be11724d4d80f189c699071be7084 /setuptools/command/easy_install.py
parent92f39994d2c6c711fbd73a5589d4de7b0ed1b72a (diff)
parent4fd89d186d4e968b7f5e99570b1e424d4c87148a (diff)
downloadexternal_python_setuptools-7423fbf04e7c20b79c4c1304069b312355777a1f.tar.gz
external_python_setuptools-7423fbf04e7c20b79c4c1304069b312355777a1f.tar.bz2
external_python_setuptools-7423fbf04e7c20b79c4c1304069b312355777a1f.zip
merge
--HG-- branch : distribute extra : rebase_source : fe09c40bed001a273328dbd39b764a784c6448eb
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 8aab6f1e..d68943fa 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -122,10 +122,9 @@ class easy_install(Command):
create_index = PackageIndex
def initialize_options(self):
- if HAS_USER_SITE:
+ if HAS_USER_SITE and site.ENABLE_USER_SITE:
whereami = os.path.abspath(__file__)
- self.user = (whereami.startswith(site.USER_SITE)
- or whereami.startswith(site.USER_BASE))
+ self.user = whereami.startswith(site.USER_SITE)
else:
self.user = 0