Correct Python invocation in Releng release jobs 03/73103/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 14 Dec 2021 15:07:17 +0000 (07:07 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 14 Dec 2021 15:07:17 +0000 (07:07 -0800)
Change-Id: I13db6409c18923cf9aebf230547382cdc97480db
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/releng/releng-release-create-venv.sh

index 7b567a3..508f783 100644 (file)
@@ -11,9 +11,9 @@ set -e -o pipefail
 echo "---> Create virtualenv"
 
 sudo -H pip3 install virtualenv
-virtualenv -p python3 $WORKSPACE/venv
+python3 -m venv -p python3 $WORKSPACE/venv
 
 # shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091
 source $WORKSPACE/venv/bin/activate
-pip install --upgrade pip
-pip install -r releases/scripts/requirements.txt
+python3 -m pip install --upgrade pip
+python3 -m pip install -r releases/scripts/requirements.txt