Commit db5c0b36 authored by Ronny Pfannschmidt's avatar Ronny Pfannschmidt

make self setup correctly consider --user when checking for setuptools, fixes #156

--HG--
branch : distribute
extra : rebase_source : f0000d114975e2b952e1153f4a1a53167bb37b20
parent e1ad7a3a
......@@ -361,8 +361,8 @@ def _under_prefix(location):
if len(args) > index:
top_dir = args[index+1]
return location.startswith(top_dir)
elif option == '--user' and USER_SITE is not None:
return location.startswith(USER_SITE)
if arg == '--user' and USER_SITE is not None:
return location.startswith(USER_SITE)
return True
......
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