From fc4c685d266fb3b86206969dc755b80f6d8a4d7a Mon Sep 17 00:00:00 2001 From: Matthew Phipps Date: Mon, 17 Feb 2014 17:28:40 -0500 Subject: [PATCH] pip module wasn't adding -e when using VCS --- packaging/pip | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packaging/pip b/packaging/pip index 666172cc0e0..2294ae0e016 100644 --- a/packaging/pip +++ b/packaging/pip @@ -287,8 +287,6 @@ def main(): if env: path_prefix="/".join(pip.split('/')[:-1]) - if extra_args: - cmd += ' %s' % extra_args if name: # pip can accept a path to a local project or a VCS url beginning # with svn+, git+, hg+, or bz+ and these sources usually do not qualify @@ -326,6 +324,10 @@ def main(): if not is_package and state != 'absent' and use_mirrors and '--use-mirrors' in cmd_opts: cmd += ' --use-mirrors' + + if extra_args: + cmd += ' %s' % extra_args + if name: cmd += ' %s' % _get_full_name(name, version) elif requirements: cmd += ' -r %s' % requirements