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: Iec9b1be576a7e6e335deab6b199ff700e200f8e0 Partial-Bug: #1637509
This commit is contained in:
parent
1697ed4d11
commit
46a3cb9a9d
@ -88,7 +88,7 @@
|
||||
|
||||
- name: Update virtualenv path
|
||||
command: >
|
||||
virtualenv-tools --update-path=auto {{ sahara_bin | dirname }}
|
||||
virtualenv-tools --update-path=auto --reinitialize {{ sahara_bin | dirname }}
|
||||
when:
|
||||
- not sahara_developer_mode | bool
|
||||
- sahara_get_venv | changed or sahara_venv_dir | changed
|
||||
|
Loading…
x
Reference in New Issue
Block a user