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: Ie4a58821381b166670cf4912fb47e7f2fe76077c Partial-Bug: #1637509
This commit is contained in:
parent
2935673aac
commit
8bf2716a53
@ -107,7 +107,7 @@
|
|||||||
|
|
||||||
- name: Update virtualenv path
|
- name: Update virtualenv path
|
||||||
command: >
|
command: >
|
||||||
virtualenv-tools --update-path=auto {{ horizon_bin | dirname }}
|
virtualenv-tools --update-path=auto --reinitialize {{ horizon_bin | dirname }}
|
||||||
when:
|
when:
|
||||||
- not horizon_developer_mode | bool
|
- not horizon_developer_mode | bool
|
||||||
- horizon_get_venv | changed or horizon_venv_dir | changed
|
- horizon_get_venv | changed or horizon_venv_dir | changed
|
||||||
|
Loading…
Reference in New Issue
Block a user