Commit 25e81962 authored by Lee Trout's avatar Lee Trout

Fix command order for pip 1.2 per https://bitbucket.org/tarek/distribute/issue/327

--HG--
branch : distribute
extra : rebase_source : 89c65271f70999d45aa6136be5f037d62370b8a2
parent 9d66fb61
......@@ -444,7 +444,8 @@ def _relaunch():
# we have to relaunch the process
# pip marker to avoid a relaunch bug
_cmd = ['-c', 'install', '--single-version-externally-managed']
if sys.argv[:3] == _cmd:
_cmd2 = ['-c', 'install', '--record']
if sys.argv[:3] == _cmd1 or sys.argv[:3] == _cmd2:
sys.argv[0] = 'setup.py'
args = [sys.executable] + sys.argv
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