From 21b23522861e364daf150cd997c5d60851847ef2 Mon Sep 17 00:00:00 2001 From: Richard Elias Date: Tue, 5 Dec 2017 09:55:36 +0000 Subject: install: Python virtualenv python3 enforcement It was reported that virtualenv-3.x sometimes uses python2.7 instead of python3. This update of the python virtual environment creation scripts, enforces the use of python3 from /usr/bin/python3. The scripts were tested on fresh installations of each currently supported Linux OS. JIRA:VSPERF-551 Change-Id: If909dd9578a3c42b14c1a3e4f9ed7b07a675fb58 Signed-off-by: Richard Elias Reviewed-by: Martin Klozik Reviewed-by: Al Morton Reviewed-by: Christian Trautman Reviewed-by: Sridhar Rao Reviewed-by: Trevor Cooper --- systems/opensuse/42.2/prepare_python_env.sh | 2 +- systems/opensuse/42.3/prepare_python_env.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'systems/opensuse') diff --git a/systems/opensuse/42.2/prepare_python_env.sh b/systems/opensuse/42.2/prepare_python_env.sh index 66f94cf7..ab668ca4 100755 --- a/systems/opensuse/42.2/prepare_python_env.sh +++ b/systems/opensuse/42.2/prepare_python_env.sh @@ -21,7 +21,7 @@ if [ -d "$VSPERFENV_DIR" ] ; then exit fi -virtualenv "$VSPERFENV_DIR" +virtualenv "$VSPERFENV_DIR" --python /usr/bin/python3 source "$VSPERFENV_DIR"/bin/activate pip install -r ../requirements.txt pip install pylint diff --git a/systems/opensuse/42.3/prepare_python_env.sh b/systems/opensuse/42.3/prepare_python_env.sh index 66f94cf7..ab668ca4 100755 --- a/systems/opensuse/42.3/prepare_python_env.sh +++ b/systems/opensuse/42.3/prepare_python_env.sh @@ -21,7 +21,7 @@ if [ -d "$VSPERFENV_DIR" ] ; then exit fi -virtualenv "$VSPERFENV_DIR" +virtualenv "$VSPERFENV_DIR" --python /usr/bin/python3 source "$VSPERFENV_DIR"/bin/activate pip install -r ../requirements.txt pip install pylint -- cgit 1.2.3-korg