Use python 3 venv for generate-constraints

With change I15d451f6a832b2e698b28e7351a36ef7aea92abe
generate-constraints needs python 3, setup the venv using python 3.

Change-Id: I3dba35267dc6f344ad27910c7dc18c1a33abf4ba
This commit is contained in:
Andreas Jaeger 2020-06-07 08:20:58 +02:00
parent 05caddb413
commit b59a59da35
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ elif [ "$OWN_PROJECT" == "requirements-constraints" ] ; then
PROJECTS=openstack/requirements
VENV=$(mktemp -d)
trap "rm -rf $VENV" EXIT
virtualenv $VENV
virtualenv -p python3 $VENV
$VENV/bin/pip install -e .
function update {
$VENV/bin/generate-constraints -b blacklist.txt -p /usr/bin/python3.6 \