Commit b53fad8a authored by Ronny Pfannschmidt's avatar Ronny Pfannschmidt

imply --user for install commands if installed in user-site

--HG--
branch : distribute
extra : rebase_source : 26878b87685bbd1b65c12763039a059937ca2228
parent 4331740b
......@@ -122,7 +122,13 @@ class easy_install(Command):
create_index = PackageIndex
def initialize_options(self):
self.user = 0
if HAS_USER_SITE:
whereami = os.path.abspath(__file__)
self.user = (whereami.startswith(site.USER_SITE)
or whereami.startswith(site.USER_BASE))
else:
self.user = 0
self.zip_ok = self.local_snapshots_ok = None
self.install_dir = self.script_dir = self.exclude_scripts = None
self.index_url = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment