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: Iad3a44f35c57d92dcbbfde4acbd86a3a4eb1879d Partial-Bug: #1741634
This commit is contained in:
Jean-Philippe Evrard
committed by
Mohammed Naser
parent
76fea25f33
commit
2b51da5f0a
2 changed files with 6 additions and 3 deletions
@@ -122,9 +122,13 @@
- trove_get_venv | changed
- name:Update virtualenv path
command:>
virtualenv-tools --update-path=auto --reinitialize {{ trove_bin | dirname }}
shell:|
find {{ trove_bin }} -name \*.pyc -delete
sed -si '1s/^.*python.*$/#!{{ trove_bin | replace ('/','\/') }}\/python/' {{ trove_bin }}/*
virtualenv {{ trove_bin | dirname }}
when:trove_get_venv | changed
tags:
- skip_ansible_lint
- name:Record the venv tag deployed
ini_file:
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.