Remove PyPy symlink workaround from Windows images (#2744)

This commit is contained in:
Sergey Dolin
2021-02-20 13:51:32 +05:00
committed by GitHub
parent 0c6a730e34
commit d0e2b96b20

View File

@@ -67,15 +67,6 @@ function Install-PyPy
exit 1
}
# https://github.com/actions/setup-python/blob/master/src/find-python.ts
# https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/UsePythonVersionV0/usepythonversion.ts
# // For PyPy, Windows uses 'bin', not 'Scripts'.
# const _binDir = path.join(installDir, 'bin');
# PyPy v7.3.1 or higher creates only Scripts folder therefore to preserve back compatibility with UsePythonVersionV0 task
# We should create a Scripts -> bin symlink
Write-Host "Symbolic link created for '$pypyArchPath\Scripts' <<===>> '$pypyArchPath\bin'"
New-Item -Path "$pypyArchPath\bin" -ItemType SymbolicLink -Value "$pypyArchPath\Scripts" | Out-Null
Write-Host "Create complete file"
New-Item -ItemType File -Path $pypyVersionPath -Name "$architecture.complete" | Out-Null
}