Commits

Ronny Pfannschmidt committed b46a774

account for the possibility that site.ENABLE_USER_SITE may be False

Comments (0)

Files changed (1)

setuptools/command/easy_install.py

     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