aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Matt Kwong <matt-kwong@users.noreply.github.com>2018-04-18 00:28:01 -0700
committerGravatar GitHub <noreply@github.com>2018-04-18 00:28:01 -0700
commite42f126f1013711b4e6807ac9eee3a1af92f2dba (patch)
tree9de3c527f482daa424a512d6496b53b686efcc17
parent33e57824e01d664b520252a09c92ce397cca5e56 (diff)
parent69f664e7f88f5424c4226b501c7f3c8e9fa35029 (diff)
Merge pull request #15080 from matt-kwong/pythonpath
Upgrade pip for virtualenv Python in build_python.sh
-rwxr-xr-xtools/run_tests/helper_scripts/build_python.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/run_tests/helper_scripts/build_python.sh b/tools/run_tests/helper_scripts/build_python.sh
index 0b5d3316ad..bd952721ad 100755
--- a/tools/run_tests/helper_scripts/build_python.sh
+++ b/tools/run_tests/helper_scripts/build_python.sh
@@ -142,6 +142,11 @@ fi
true)
VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON")
+# See https://github.com/grpc/grpc/issues/14815 for more context. We cannot rely
+# on pip to upgrade itself because if pip is too old, it may not have the required
+# TLS version to run `pip install`.
+curl https://bootstrap.pypa.io/get-pip.py | $VENV_PYTHON
+
# pip-installs the directory specified. Used because on MSYS the vanilla Windows
# Python gets confused when parsing paths.
pip_install_dir() {