From 46a3cb9a9d66271c579cc74302c09de878fb57a2 Mon Sep 17 00:00:00 2001 From: Logan V Date: Tue, 15 Nov 2016 22:15:24 -0600 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: Iec9b1be576a7e6e335deab6b199ff700e200f8e0 Partial-Bug: #1637509 --- tasks/sahara_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/sahara_install.yml b/tasks/sahara_install.yml index 4d32431..1898924 100644 --- a/tasks/sahara_install.yml +++ b/tasks/sahara_install.yml @@ -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