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: Iaae7414d7764b4d09bc64c75d589bc5011909488 Partial-Bug: #1637509
This commit is contained in:
parent
2e096ecd54
commit
ba43654e71
|
@ -87,7 +87,7 @@
|
|||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto {{ magnum_bin | dirname }}
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ magnum_bin | dirname }}
|
||||
when:
|
||||
- not magnum_developer_mode | bool
|
||||
- magnum_get_venv | changed or magnum_venv_dir | changed
|
||||
|
|
Loading…
Reference in New Issue