From fd05dcef50e37afefbc75862cd97b4e50af9063b Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Wed, 9 Dec 2020 10:35:10 -0800 Subject: [PATCH] Upgrade pyOpenSSL explicitly --- .../helper_scripts/prepare_build_macos_rc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index 185f01961cb..cb7c6731060 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -88,10 +88,13 @@ then time pip install --user --upgrade Mako tox setuptools==44.1.1 twisted pyyaml pyjwt cryptography requests # Install Python 3.7 if it doesn't exist - time curl -O https://www.python.org/ftp/python/3.7.0/python-3.7.0-macosx10.9.pkg - echo "ee4ad46ab8cd226ffc8df56d48acfdf7daa2714a9c51e6dc6262fc0b25519578 python-3.7.0-macosx10.9.pkg" > /tmp/python_installer_checksum.sha256 - shasum -c /tmp/python_installer_checksum.sha256 - time sudo installer -pkg ./python-3.7.0-macosx10.9.pkg -target / + if [ ! -f "/usr/local/bin/python3.7" ]; then + time curl -O https://www.python.org/ftp/python/3.7.0/python-3.7.0-macosx10.9.pkg + echo "ee4ad46ab8cd226ffc8df56d48acfdf7daa2714a9c51e6dc6262fc0b25519578 python-3.7.0-macosx10.9.pkg" > /tmp/python_installer_checksum.sha256 + shasum -c /tmp/python_installer_checksum.sha256 + time sudo installer -pkg ./python-3.7.0-macosx10.9.pkg -target / + fi + python3.7 -m pip install -U pyOpenSSL==20.0.0 # Install Python 3.8 if it doesn't exist if [ ! -f "/usr/local/bin/python3.8" ]; then @@ -100,6 +103,7 @@ then shasum -c /tmp/python_installer_checksum.sha256 time sudo installer -pkg ./python-3.8.0-macosx10.9.pkg -target / fi + python3.8 -m pip install -U pyOpenSSL==20.0.0 # Install Python 3.9 if it doesn't exist if [ ! -f "/usr/local/bin/python3.9" ]; then @@ -108,6 +112,7 @@ then shasum -c /tmp/python_installer_checksum.sha256 time sudo installer -pkg ./python-3.9.0-macosx10.9.pkg -target / fi + python3.9 -m pip install -U pyOpenSSL==20.0.0 fi if [ "${PREPARE_BUILD_INSTALL_DEPS_CSHARP}" == "true" ]