Reinitialize venv upon install
Reinitializes (copies python, etc binaries) into the venv when dropping a new venv into place. This is needed because the Python binary packaged with the venv may not match the Python running on the host it is being installed to. (ie. in the case of a Xenial repo container and a Trusty target host.) Change-Id: I54feeb4a08c52ad59a2d8740b9696dd2417405ac Partial-Bug: #1637509
This commit is contained in:
parent
581e4bba0b
commit
f73a8dc279
@ -109,7 +109,7 @@
|
|||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
command: >
|
||||||
virtualenv-tools --update-path=auto {{ tempest_venv_bin | dirname }}
|
virtualenv-tools --update-path=auto --reinitialize {{ tempest_venv_bin | dirname }}
|
||||||
when:
|
when:
|
||||||
- not tempest_developer_mode | bool
|
- not tempest_developer_mode | bool
|
||||||
- tempest_get_venv | changed or tempest_venv_dir | changed
|
- tempest_get_venv | changed or tempest_venv_dir | changed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user