aboutsummaryrefslogtreecommitdiffstats
path: root/distribute_setup.py
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-28 00:15:21 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-28 00:15:21 +0200
commitdb5c0b3692c021fbe92c34e367e05cf341946a67 (patch)
tree602ec8770a319960a515ab4cb58c9a434d25124f /distribute_setup.py
parente1ad7a3ac2ee213f7ce9397fa68b85962b38f29c (diff)
downloadexternal_python_setuptools-db5c0b3692c021fbe92c34e367e05cf341946a67.tar.gz
external_python_setuptools-db5c0b3692c021fbe92c34e367e05cf341946a67.tar.bz2
external_python_setuptools-db5c0b3692c021fbe92c34e367e05cf341946a67.zip
make self setup correctly consider --user when checking for setuptools, fixes #156
--HG-- branch : distribute extra : rebase_source : f0000d114975e2b952e1153f4a1a53167bb37b20
Diffstat (limited to 'distribute_setup.py')
-rw-r--r--distribute_setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index 194861b5..002e3a85 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -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