mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[Windows] Add pip.exe alias if missing (#5308)
This commit is contained in:
committed by
GitHub
parent
e7a6a9a375
commit
69e130c704
@@ -52,6 +52,14 @@ function Install-PyPy
|
|||||||
cmd.exe /c "cd /d $pypyArchPath && mklink python.exe $pypyName && python.exe -m ensurepip && python.exe -m pip install --upgrade pip"
|
cmd.exe /c "cd /d $pypyArchPath && mklink python.exe $pypyName && python.exe -m ensurepip && python.exe -m pip install --upgrade pip"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Create pip.exe if missing
|
||||||
|
$pipPath = Join-Path -Path $pypyArchPath -ChildPath "Scripts/pip.exe"
|
||||||
|
if (-not (Test-Path $pipPath))
|
||||||
|
{
|
||||||
|
$pip3Path = Join-Path -Path $pypyArchPath -ChildPath "Scripts/pip3.exe"
|
||||||
|
Copy-Item -Path $pip3Path -Destination $pipPath
|
||||||
|
}
|
||||||
|
|
||||||
if ($LASTEXITCODE -ne 0)
|
if ($LASTEXITCODE -ne 0)
|
||||||
{
|
{
|
||||||
Throw "Error happened during PyPy installation"
|
Throw "Error happened during PyPy installation"
|
||||||
|
|||||||
Reference in New Issue
Block a user