From 3892b3b35989e66bd05d3fd558ac82875c27c80f Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Thu, 2 Dec 2021 16:10:39 -0800 Subject: [PATCH] Explicitly use python3 virtualenv in Ruby and PHP xDS interop setup scripts (#28255) --- tools/internal_ci/linux/grpc_xds_php_test_in_docker.sh | 3 ++- tools/internal_ci/linux/grpc_xds_ruby_test_in_docker.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/internal_ci/linux/grpc_xds_php_test_in_docker.sh b/tools/internal_ci/linux/grpc_xds_php_test_in_docker.sh index b18f306d724..994747a4a82 100755 --- a/tools/internal_ci/linux/grpc_xds_php_test_in_docker.sh +++ b/tools/internal_ci/linux/grpc_xds_php_test_in_docker.sh @@ -23,8 +23,9 @@ git clone /var/local/jenkins/grpc /var/local/git/grpc ${name}') cd /var/local/git/grpc +python3 -m pip install virtualenv VIRTUAL_ENV=$(mktemp -d) -virtualenv "$VIRTUAL_ENV" -p python3 +python3 -m virtualenv "$VIRTUAL_ENV" -p python3 PYTHON="$VIRTUAL_ENV"/bin/python "$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 diff --git a/tools/internal_ci/linux/grpc_xds_ruby_test_in_docker.sh b/tools/internal_ci/linux/grpc_xds_ruby_test_in_docker.sh index c6d89756890..493dba48dea 100755 --- a/tools/internal_ci/linux/grpc_xds_ruby_test_in_docker.sh +++ b/tools/internal_ci/linux/grpc_xds_ruby_test_in_docker.sh @@ -23,8 +23,9 @@ git clone /var/local/jenkins/grpc /var/local/git/grpc ${name}') cd /var/local/git/grpc +python3 -m pip install virtualenv VIRTUAL_ENV=$(mktemp -d) -virtualenv "$VIRTUAL_ENV" -p python3 +python3 -m virtualenv "$VIRTUAL_ENV" -p python3 PYTHON="$VIRTUAL_ENV"/bin/python "$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