Commits

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

Comments (0)

Files changed (1)

distribute_setup.py

 def _relaunch():
     log.warn('Relaunching...')
     # 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
     sys.exit(subprocess.call(args))