Fix virtualenv 35/67935/1
authorAric Gardner <agardner@linuxfoundation.org>
Fri, 24 May 2019 21:37:06 +0000 (17:37 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Fri, 24 May 2019 21:37:36 +0000 (17:37 -0400)
virtualenv $WORKSPACE/venv created a python3.4 environment
I have installed python36u on the builer and symlinked
/usr/bin/python3 to /usr/bin/python36

I have tested this change and it worked for the broken
job:
https://build.opnfv.org/ci/job/releng-release-hunter-merge/

Change-Id: Ibdc3218c47b5103f28a8b6f730962434972b76be
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/releng/releng-release-create-venv.sh

index de585fd..0200376 100644 (file)
@@ -11,7 +11,8 @@ set -e -o pipefail
 echo "---> Create virtualenv"
 
 sudo -H pip install virtualenv
-virtualenv $WORKSPACE/venv
+virtualenv -p /usr/bin/python3 $WORKSPACE/venv
+
 # shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
 source $WORKSPACE/venv/bin/activate
 pip install --upgrade pip