Ensure we use the Python 3 environment for creating the virtual environment (#26953)

reviewable/pr26954/r1^2
Richard Belleville 3 years ago committed by GitHub
parent 78c98a9b06
commit 8e0f8beb1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tools/internal_ci/linux/grpc_xds_bazel_python_test_in_docker.sh

@ -22,8 +22,9 @@ git clone /var/local/jenkins/grpc /var/local/git/grpc
${name}') ${name}')
cd /var/local/git/grpc cd /var/local/git/grpc
python3 -m pip install virtualenv
VIRTUAL_ENV=$(mktemp -d) VIRTUAL_ENV=$(mktemp -d)
virtualenv "$VIRTUAL_ENV" -p python3 python3 -m virtualenv "$VIRTUAL_ENV" -p python3
PYTHON="$VIRTUAL_ENV"/bin/python PYTHON="$VIRTUAL_ENV"/bin/python
"$PYTHON" -m pip install --upgrade pip==19.3.1 "$PYTHON" -m pip install --upgrade pip==19.3.1
"$PYTHON" -m pip install --upgrade grpcio-tools google-api-python-client google-auth-httplib2 oauth2client xds-protos "$PYTHON" -m pip install --upgrade grpcio-tools google-api-python-client google-auth-httplib2 oauth2client xds-protos

Loading…
Cancel
Save