Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install versions of Python not available on Kokoro Windows VM. #1390

Merged
merged 1 commit into from
Oct 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/ci/kokoro/windows/run_integ_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ set GsutilRepoDir="T:\src\github\src\gsutil"
set "PyExePath=C:\python%PYMAJOR%%PYMINOR%\python.exe"
set "PipPath=C:\python%PYMAJOR%%PYMINOR%\Scripts\pip.exe"

if not exist %PyExePath% (
choco install python -y --no-progress --version=%PYMAJOR%.%PYMINOR%.0
Copy link
Contributor

@thomasmaclean thomasmaclean Oct 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently there's a proposal to allow for version ranges. I didn't see any linked PR's in this bug, but it's documented here: chocolatey/choco#800

You'd then be able to do something like [%PYMAJOR%.%PYMINOR,%PYMAJOR.%PYNEXTMINOR) assuming you defined PYMINORNEXT to be PYMINOR+1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PIPs < Chocos

)

PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%GsutilRepoDir%\test\ci\kokoro\windows\config_generator.ps1' 'T:\src\keystore\74008_gsutil_kokoro_service_key' '%API%' '%BOTO_CONFIG%'"
type %BOTO_CONFIG%

Expand Down