aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Trout <lee@leetrout.com>2012-10-18 13:17:44 -0400
committerLee Trout <lee@leetrout.com>2012-10-18 13:17:44 -0400
commit25e819620334f3126cf5ba3809ab1338f648fa88 (patch)
tree12b9119d19a46b7590e8a5eefa6db60d805e94d7
parent9d66fb61d9579516c5333d51eb85dc3495e6032f (diff)
downloadexternal_python_setuptools-25e819620334f3126cf5ba3809ab1338f648fa88.tar.gz
external_python_setuptools-25e819620334f3126cf5ba3809ab1338f648fa88.tar.bz2
external_python_setuptools-25e819620334f3126cf5ba3809ab1338f648fa88.zip
Fix command order for pip 1.2 per https://bitbucket.org/tarek/distribute/issue/327
--HG-- branch : distribute extra : rebase_source : 89c65271f70999d45aa6136be5f037d62370b8a2
-rw-r--r--distribute_setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index a52d5c16..1922dd7d 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -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))