Fix PowerShell quoting in Windows Docker Python alias step.

Use single-quoted python -c code in the Docker RUN command so the command parses correctly under pwsh -Command and avoids parser errors during image build.
This commit is contained in:
Vijay Janapa Reddi
2026-03-05 08:00:38 -05:00
parent 9314128cf7
commit d767eb4212

View File

@@ -227,7 +227,7 @@ RUN Write-Host '=== STARTING PYTHON INSTALLATION ===' ; `
Write-Host "❌ Python install failed: version check exited $LASTEXITCODE" ; `
exit 1 ; `
} ; `
$pyExe = (python -c "import sys; print(sys.executable)").Trim() ; `
$pyExe = (python -c 'import sys; print(sys.executable)').Trim() ; `
$pyDir = Split-Path $pyExe -Parent ; `
$py3Exe = Join-Path $pyDir 'python3.exe' ; `
if (-not (Test-Path $py3Exe)) { `