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: I7a363fa0890101fd2f4007a866ca73b2f0e80d60 Partial-Bug: #1741634
This commit is contained in:
parent
590d371503
commit
3fe30720ec
|
@ -108,7 +108,6 @@ cloudkitty_pip_packages:
|
|||
|
||||
cloudkitty_requires_pip_packages:
|
||||
- virtualenv
|
||||
- virtualenv-tools
|
||||
- python-keystoneclient
|
||||
- httplib2
|
||||
|
||||
|
|
|
@ -128,9 +128,12 @@
|
|||
- cloudkitty-pip-packages
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ cloudkitty_bin | dirname }}
|
||||
shell: |
|
||||
find {{ cloudkitty_bin }} -name \*.pyc -delete
|
||||
sed -si '1s/^.*python.*$/#!{{ cloudkitty_bin | replace ('/','\/') }}\/python/' {{ cloudkitty_bin }}/*
|
||||
when: cloudkitty_get_venv | changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
tags:
|
||||
- cloudkitty-install
|
||||
- cloudkitty-pip-packages
|
||||
|
|
Loading…
Reference in New Issue