From 152c6fa220df3ce8c3f211d490bfe547b155b0e2 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 7 May 2010 00:03:18 +0200 Subject: [PATCH] account for the possibility that site.ENABLE_USER_SITE may be False --HG-- branch : distribute extra : rebase_source : 4f763cb0a4dd4cddef1df333a4ded2a2728fedcd --- setuptools/command/easy_install.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 8aab6f1e4e..d68943faf3 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