aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziade <tarek@ziade.org>2010-05-31 18:46:25 +0200
committerTarek Ziade <tarek@ziade.org>2010-05-31 18:46:25 +0200
commit9e5db3812358c2dba88a56da07b39b18f3ce27ad (patch)
tree1ee5b267ae230ad9167903d8be4fe609f47355ca
parentdb5c0b3692c021fbe92c34e367e05cf341946a67 (diff)
downloadexternal_python_setuptools-9e5db3812358c2dba88a56da07b39b18f3ce27ad.tar.gz
external_python_setuptools-9e5db3812358c2dba88a56da07b39b18f3ce27ad.tar.bz2
external_python_setuptools-9e5db3812358c2dba88a56da07b39b18f3ce27ad.zip
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
-rw-r--r--distribute_setup.py3
1 files changed, 3 insertions, 0 deletions
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))