diff options
author | Matt Kwong <mattkwong@google.com> | 2018-06-28 18:05:25 -0700 |
---|---|---|
committer | Matt Kwong <mattkwong@google.com> | 2018-07-09 11:32:25 -0700 |
commit | 969e12cdc618a069d282b20b4c5e1fe39486b9d7 (patch) | |
tree | 9b2a406640ca94dd617f0e79e9385064ebc21813 | |
parent | 10d853dabdd4bc09698fa1f2d41481a936259d7e (diff) |
Install Python3.7 on Windows and MacOS
-rw-r--r-- | tools/internal_ci/helper_scripts/prepare_build_macos_rc | 4 | ||||
-rw-r--r-- | tools/internal_ci/helper_scripts/prepare_build_windows.bat | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc index 2f12471a85..7cdb2e0cf7 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc +++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc @@ -67,6 +67,10 @@ pip install virtualenv --user python pip install -U Mako six tox setuptools twisted pyyaml --user python export PYTHONPATH=/Library/Python/3.4/site-packages +# Install Python 3.7 +curl -O https://www.python.org/ftp/python/3.7.0/python-3.7.0-macosx10.9.pkg +sudo installer -pkg ./python-3.7.0-macosx10.9.pkg -target / + # set xcode version for Obj-C tests sudo xcode-select -switch /Applications/Xcode_9.2.app/Contents/Developer/ diff --git a/tools/internal_ci/helper_scripts/prepare_build_windows.bat b/tools/internal_ci/helper_scripts/prepare_build_windows.bat index f987f8a8cb..0164e4a561 100644 --- a/tools/internal_ci/helper_scripts/prepare_build_windows.bat +++ b/tools/internal_ci/helper_scripts/prepare_build_windows.bat @@ -14,7 +14,7 @@ @rem make sure msys binaries are preferred over cygwin binaries @rem set path to python 2.7 -set PATH=C:\tools\msys64\usr\bin;C:\Python27;%PATH% +set PATH=C:\tools\msys64\usr\bin;C:\Python27;C:\Python37;%PATH% @rem If this is a PR using RUN_TESTS_FLAGS var, then add flags to filter tests if defined KOKORO_GITHUB_PULL_REQUEST_NUMBER if defined RUN_TESTS_FLAGS ( @@ -34,6 +34,9 @@ netsh interface ip add dnsservers "Local Area Connection 8" 8.8.4.4 index=3 @rem Needed for big_query_utils python -m pip install google-api-python-client +@rem Install Python 3.7 +chocolatey install -y -r python3 --version 3.7 + @rem Disable some unwanted dotnet options set NUGET_XMLDOC_MODE=skip set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true |