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: I5c8b8d102829e84179f94e10a7464008ac5753c4 Partial-Bug: #1741634
This commit is contained in:
parent
073b3b2a90
commit
e2810f4427
@ -146,7 +146,6 @@ sahara_service_in_ldap: False
|
||||
# Sahara packages that must be installed before anything else
|
||||
sahara_requires_pip_packages:
|
||||
- virtualenv
|
||||
- virtualenv-tools
|
||||
- python-keystoneclient # Keystoneclient needed to OSA keystone lib
|
||||
- httplib2
|
||||
|
||||
|
@ -111,9 +111,12 @@
|
||||
- sahara_get_venv | changed
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ sahara_bin | dirname }}
|
||||
shell: |
|
||||
find {{ sahara_bin }} -name \*.pyc -delete
|
||||
sed -si '1s/^.*python.*$/#!{{ sahara_bin | replace ('/','\/') }}\/python/' {{ sahara_bin }}/*
|
||||
when: sahara_get_venv | changed
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Record the venv tag deployed
|
||||
ini_file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user