Replace virtualenv-tools by a script
virtualenv-tools has a bug which gets triggered in gates: it can't change the shebang of a virtualenv python bin/ files if they were generated with a virtualenv script whose shebang ends with python2 instead of python. Because we can't modify virtualenv-tools, we use shell scripts instead. Change-Id: I06b22225177c8c57995601d1ab39245965f66150 Partial-Bug: #1741634
This commit is contained in:
parent
2b6927602a
commit
bf7e349e5d
|
@ -107,7 +107,6 @@ tacker_service_in_ldap: false
|
||||||
# packages that must be installed before anything else
|
# packages that must be installed before anything else
|
||||||
tacker_requires_pip_packages:
|
tacker_requires_pip_packages:
|
||||||
- virtualenv
|
- virtualenv
|
||||||
- virtualenv-tools
|
|
||||||
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
||||||
|
|
||||||
## Common pip packages
|
## Common pip packages
|
||||||
|
|
|
@ -132,8 +132,11 @@
|
||||||
- skip_ansible_lint
|
- skip_ansible_lint
|
||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
shell: |
|
||||||
virtualenv-tools --update-path=auto {{ tacker_bin | dirname }}
|
find {{ tacker_bin }} -name \*.pyc -delete
|
||||||
|
sed -si '1s/^.*python.*$/#!{{ tacker_bin | replace ('/','\/') }}\/python/' {{ tacker_bin }}/*
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
when:
|
when:
|
||||||
- not tacker_developer_mode | bool
|
- not tacker_developer_mode | bool
|
||||||
- tacker_get_venv | success
|
- tacker_get_venv | success
|
||||||
|
|
Loading…
Reference in New Issue