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: Ie87ebd7aefaf7117e8fbd9711e887233eec8ff1c
Partial-Bug: #1637509
This commit is contained in:
Jesse Pretorius 2016-11-16 09:14:16 +00:00
parent abf382bb68
commit f069211ece
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@
- name: Update virtualenv path
command: >
virtualenv-tools --update-path=auto {{ cloudkitty_bin | dirname }}
virtualenv-tools --update-path=auto --reinitialize {{ cloudkitty_bin | dirname }}
when:
- not cloudkitty_developer_mode | bool
- cloudkitty_get_venv | changed or cloudkitty_venv_dir | changed