File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change 44
44
"project" : "bazel-public" ,
45
45
"zone" : "us-central1-f" ,
46
46
"source_image_project" : "windows-cloud" ,
47
- "source_image_family" : "windows-2019-core" ,
47
+ "source_image_family" : "windows-2022" , # vs build tools failed to install on windows-2022-core
48
48
"setup_script" : "setup-windows.ps1" ,
49
49
"guest_os_features" : ["VIRTIO_SCSI_MULTIQUEUE" ],
50
50
},
53
53
"zone" : "us-central1-f" ,
54
54
"network" : "default" ,
55
55
"source_image_project" : "windows-cloud" ,
56
- "source_image_family" : "windows-2019 " ,
56
+ "source_image_family" : "windows-2022 " ,
57
57
"setup_script" : "setup-windows.ps1" ,
58
58
"guest_os_features" : ["VIRTIO_SCSI_MULTIQUEUE" ],
59
59
},
Original file line number Diff line number Diff line change @@ -159,33 +159,23 @@ foreach ($directory in $directories) {
159
159
[Environment ]::SetEnvironmentVariable(" BAZEL_VC" , " C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC" , " Machine" )
160
160
$env: BAZEL_VC = [Environment ]::GetEnvironmentVariable(" BAZEL_VC" , " Machine" )
161
161
162
- # # Install Windows 10 SDK
163
- # # https://github.com/bazelbuild/continuous-integration/issues/768
164
- & choco install windows- sdk- 10 - version- 2004 - all
165
-
166
- # # Install Python2
167
- Write-Host " Installing Python 2..."
168
- & choco install python2 -- params " /InstallDir:C:\python2"
169
- $env: PATH = [Environment ]::GetEnvironmentVariable(" PATH" , " Machine" )
170
-
171
162
# # Install Python3
172
163
Write-Host " Installing Python 3..."
173
- & choco install python3 -- params " /InstallDir:C:\python3" -- version = 3.9 . 7
164
+ & choco install python312 -- params " /InstallDir:C:\python3"
174
165
$env: PATH = [Environment ]::GetEnvironmentVariable(" PATH" , " Machine" )
175
166
New-Item - ItemType SymbolicLink - Path " C:\python3\python3.exe" - Target " C:\python3\python.exe"
176
167
177
168
# # Install a couple of Python modules required by TensorFlow.
178
169
Write-Host " Updating Python package management tools..."
179
- & " C:\Python2\python.exe" - m pip install -- upgrade pip setuptools wheel
180
170
& " C:\Python3\python.exe" - m pip install -- upgrade pip setuptools wheel
181
171
182
172
Write-Host " Installing Python packages..."
183
173
& " C:\Python3\Scripts\pip.exe" install -- upgrade `
184
174
autograd `
185
- numpy~ = 1.21 . 2 `
175
+ numpy `
186
176
portpicker `
187
177
protobuf `
188
- pyreadline `
178
+ pyreadline3 `
189
179
six `
190
180
requests `
191
181
pyyaml `
You can’t perform that action at this time.
0 commit comments