Skip to content

Commit

Permalink
account for the possibility that site.ENABLE_USER_SITE may be False
Browse files Browse the repository at this point in the history
--HG--
branch : distribute
extra : rebase_source : 4f763cb0a4dd4cddef1df333a4ded2a2728fedcd
  • Loading branch information
RonnyPfannschmidt committed May 6, 2010
1 parent f87d68e commit 152c6fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 152c6fa

Please sign in to comment.