aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
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