Skip to content

Commit 4826a45

Browse files
chore: Update the version of Python in the Windows UserData to 3.12.8 (#178)
Signed-off-by: Evan Spearman <[email protected]>
1 parent 62a1bf8 commit 4826a45

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/deadline_test_fixtures/deadline/worker.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -609,11 +609,11 @@ def userdata(self, s3_files) -> str:
609609

610610
userdata = f"""<powershell>
611611
$ProgressPreference = 'SilentlyContinue'
612-
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe" -OutFile "C:\python-3.11.9-amd64.exe"
613-
$installerHash=(Get-FileHash "C:\python-3.11.9-amd64.exe" -Algorithm "MD5")
614-
$expectedHash="e8dcd502e34932eebcaf1be056d5cbcd"
612+
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.12.8/python-3.12.8-amd64.exe" -OutFile "C:\python-3.12.8-amd64.exe"
613+
$installerHash=(Get-FileHash "C:\python-3.12.8-amd64.exe" -Algorithm "MD5")
614+
$expectedHash="2f2ab2472a6aa29f8755c72c58f58f4b"
615615
if ($installerHash.Hash -ne $expectedHash) {{ throw "Could not verify Python installer." }}
616-
Start-Process -FilePath "C:\python-3.11.9-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait
616+
Start-Process -FilePath "C:\python-3.12.8-amd64.exe" -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 AppendPath=1" -Wait
617617
Invoke-WebRequest -Uri "https://awscli.amazonaws.com/AWSCLIV2.msi" -Outfile "C:\AWSCLIV2.msi"
618618
Start-Process msiexec.exe -ArgumentList "/i C:\AWSCLIV2.msi /quiet" -Wait
619619
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")

0 commit comments

Comments
 (0)