From f5a066b36f729e7bb028dc281550d9b3b277b00e Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Wed, 16 Nov 2016 09:14:26 +0000 Subject: [PATCH] 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: Ibedc836cbab89d82d59c90165cbe064775164742 Partial-Bug: #1637509 --- tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/install.yml b/tasks/install.yml index 1f2a1ac..88e2419 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -91,7 +91,7 @@ - name: Update virtualenv path command: > - virtualenv-tools --update-path=auto {{ monasca_bin | dirname }} + virtualenv-tools --update-path=auto --reinitialize {{ monasca_bin | dirname }} when: - not monasca_developer_mode | bool - monasca_get_venv | changed or monasca_venv_dir | changed