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: I2cb0114dccd964ba917e88a2951e52a0bd6c6688 Partial-Bug: #1637509
This commit is contained in:
parent
7946bfaa43
commit
1e3090a5c8
@ -110,7 +110,7 @@
|
|||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
command: >
|
||||||
virtualenv-tools --update-path=auto {{ nova_bin | dirname }}
|
virtualenv-tools --update-path=auto --reinitialize {{ nova_bin | dirname }}
|
||||||
when:
|
when:
|
||||||
- not nova_developer_mode | bool
|
- not nova_developer_mode | bool
|
||||||
- nova_get_venv | changed or nova_venv_dir | changed
|
- nova_get_venv | changed or nova_venv_dir | changed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user