Commit 9e5db381 authored by Tarek Ziade's avatar Tarek Ziade

pip uses python -c "... execfile(setup.py)" magic to run a package. This was...

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

--HG--
branch : distribute
extra : rebase_source : bb6d85b61b4c2c98b931ea456bd631da9291fb19
parent db5c0b36
...@@ -421,6 +421,9 @@ def _fake_setuptools(): ...@@ -421,6 +421,9 @@ def _fake_setuptools():
def _relaunch(): def _relaunch():
log.warn('Relaunching...') log.warn('Relaunching...')
# we have to relaunch the process # 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 args = [sys.executable] + sys.argv
sys.exit(subprocess.call(args)) sys.exit(subprocess.call(args))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment