From 88aa21d43a588f1b7b011b148fc8c3d1fde55dc2 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: If20462b0d57ee8ec11a479dbaf463e1cd309ac97 Partial-Bug: #1637509 --- tasks/trove_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/trove_install.yml b/tasks/trove_install.yml index 7f3c01f..9c15030 100644 --- a/tasks/trove_install.yml +++ b/tasks/trove_install.yml @@ -99,7 +99,7 @@ - name: Update virtualenv path command: > - virtualenv-tools --update-path=auto {{ trove_bin | dirname }} + virtualenv-tools --update-path=auto --reinitialize {{ trove_bin | dirname }} when: - not trove_developer_mode | bool - trove_get_venv | changed or trove_venv_dir | changed