From 9e5db3812358c2dba88a56da07b39b18f3ce27ad Mon Sep 17 00:00:00 2001 From: Tarek Ziade Date: Mon, 31 May 2010 18:46:25 +0200 Subject: 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 --- distribute_setup.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'distribute_setup.py') diff --git a/distribute_setup.py b/distribute_setup.py index 002e3a85..37117b34 100644 --- a/distribute_setup.py +++ b/distribute_setup.py @@ -421,6 +421,9 @@ def _fake_setuptools(): 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)) -- cgit v1.2.3