1. Tarek Ziadé
  2. distribute


Tarek Ziadé  committed 016c6e4

pip uses python -c "... execfile(setup.py)" magic to run a package. This was breaking with the way we relaunch the script

  • Participants
  • Parent commits 9dc60dd
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File distribute_setup.py

View file
 def _relaunch():
     # we have to relaunch the process
+    # pip marker to avoid a relaunch bug
+    if sys.argv[:3] == ['-c', 'install', '--single-version-externally-managed']:
+        sys.argv[0] = 'setup.py'
     args = [sys.executable] + sys.argv