Fix Releng release job virtuenv creations 02/73102/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 14 Dec 2021 14:44:25 +0000 (06:44 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 14 Dec 2021 14:44:25 +0000 (06:44 -0800)
This script should be more explicit in specifying pip3, and not specify
the path to python3.

Change-Id: I853b0f6fff8950bc729167a18f98bea591a083f0
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng/releng-release-create-venv.sh

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