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: I1d6c3765e781b706244fdf0e91c1d6a51679d062
Partial-Bug: #1637509
This commit is contained in:
Logan V 2016-11-15 22:15:23 -06:00
parent 24077abc9b
commit 67173d296c

View File

@ -93,7 +93,7 @@
- name: Update virtualenv path - name: Update virtualenv path
command: > command: >
virtualenv-tools --update-path=auto {{ designate_bin | dirname }} virtualenv-tools --update-path=auto --reinitialize {{ designate_bin | dirname }}
when: when:
- not designate_developer_mode | bool - not designate_developer_mode | bool
- designate_get_venv | changed or designate_venv_dir | changed - designate_get_venv | changed or designate_venv_dir | changed