From db5c0b3692c021fbe92c34e367e05cf341946a67 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 28 May 2010 00:15:21 +0200 Subject: make self setup correctly consider --user when checking for setuptools, fixes #156 --HG-- branch : distribute extra : rebase_source : f0000d114975e2b952e1153f4a1a53167bb37b20 --- distribute_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distribute_setup.py') 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 -- cgit v1.2.1