From b5489542cd320db3eb50d95b67a8524657188eb9 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Sat, 15 Aug 2026 12:38:05 +0000 Subject: [PATCH] remove quotes from python version in bootstrap request URL (#32433) --- tools/bootstrap/python_.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/bootstrap/python_.ps1 b/tools/bootstrap/python_.ps1 index 2cf0638d350..cffe752f569 100644 --- a/tools/bootstrap/python_.ps1 +++ b/tools/bootstrap/python_.ps1 @@ -18,7 +18,7 @@ function ExtractVersion { param([string] $Path, [string] $Key) foreach ($Line in Get-Content $Path) { if ($Line.StartsWith("export $Key=")) { - return $Line.Substring("export $Key=".Length) + return $Line.Substring("export $Key=".Length).Trim('"') } } throw "Couldn't find value for $Key in $Path" @@ -42,10 +42,9 @@ if (!(Test-Path $PythonExe -PathType Leaf)) { New-Item $Cache -ItemType Directory -ErrorAction silentlyContinue | Out-Null $Archive = "$Cache/python-$PythonVersion-embed.zip" - Invoke-WebRequest ` - "https://www.python.org/ftp/python/$PythonVersion/python-$PythonVersion-embed-amd64.zip" ` - -OutFile $Archive ` - -ErrorAction Stop + $RequestUrl = "https://www.python.org/ftp/python/$PythonVersion/python-$PythonVersion-embed-amd64.zip" + Write-Output "Downloading from: $RequestUrl" + Invoke-WebRequest $RequestUrl -OutFile $Archive -ErrorAction Stop [System.IO.Compression.ZipFile]::ExtractToDirectory($Archive, $PythonDir)