mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
pip module wasn't adding -e when using VCS
This commit is contained in:
parent
bb465ef5da
commit
63ff6c8493
1 changed files with 4 additions and 2 deletions
|
@ -287,8 +287,6 @@ def main():
|
||||||
if env:
|
if env:
|
||||||
path_prefix="/".join(pip.split('/')[:-1])
|
path_prefix="/".join(pip.split('/')[:-1])
|
||||||
|
|
||||||
if extra_args:
|
|
||||||
cmd += ' %s' % extra_args
|
|
||||||
if name:
|
if name:
|
||||||
# pip can accept a path to a local project or a VCS url beginning
|
# 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
|
# 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:
|
if not is_package and state != 'absent' and use_mirrors and '--use-mirrors' in cmd_opts:
|
||||||
cmd += ' --use-mirrors'
|
cmd += ' --use-mirrors'
|
||||||
|
|
||||||
|
if extra_args:
|
||||||
|
cmd += ' %s' % extra_args
|
||||||
|
if name:
|
||||||
cmd += ' %s' % _get_full_name(name, version)
|
cmd += ' %s' % _get_full_name(name, version)
|
||||||
elif requirements:
|
elif requirements:
|
||||||
cmd += ' -r %s' % requirements
|
cmd += ' -r %s' % requirements
|
||||||
|
|
Loading…
Reference in a new issue