Skip to content

Commit d9dd73b

Browse files
authored
fix(): Download get-pip to temp directory (#29)
When testing inside a docker container there was an issue where `get-pip.py` would not download to the root directory. Modify the code to create a temp file and point python at that to install pip.
1 parent 774abd4 commit d9dd73b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

WebKitDev/Functions/Install-Python.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ function Install-Python {
7373
$pipInstall = ('pip=={0}' -f $pipVersion);
7474
Write-Information -MessageData ('Installing {0} from {1} ...' -f ($pipInstall,$getPip)) -InformationAction Continue;
7575

76-
Invoke-WebFileRequest -url $getPip -DestinationPath 'get-pip.py';
76+
$pipScript = Join-Path ([System.IO.Path]::GetTempPath()) 'get-pip.py';
77+
Invoke-WebFileRequest -url $getPip -DestinationPath $pipScript;
7778

78-
python.exe get-pip.py $pipInstall;
79-
Remove-Item get-pip.py -Force;
79+
python.exe $pipScript $pipInstall;
80+
Remove-Item $pipScript -Force;
8081
}

0 commit comments

Comments
 (0)