Commits

Ronny Pfannschmidt  committed 9dc60dd

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

  • Participants
  • Parent commits dc4f629
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File distribute_setup.py

                 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