mirror of
https://github.com/actions/setup-python.git
synced 2026-11-16 05:55:02 +08:00
Fix PyPy pip downgrade install state
This commit is contained in:
parent
ec52d0af72
commit
e201669395
3 changed files with 13 additions and 5 deletions
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
|
|
@ -99820,7 +99820,8 @@ async function install_pypy_installPip(pythonLocation) {
|
|||
info('Installing and updating pip');
|
||||
const pythonBinary = external_path_.join(pythonLocation, 'python');
|
||||
await exec_exec(`${pythonBinary} -m ensurepip`);
|
||||
await exec_exec(`${pythonLocation}/python -m pip install --ignore-installed pip`);
|
||||
// Do not use --ignore-installed; pip must remove files from previous versions.
|
||||
await exec_exec(`${pythonLocation}/python -m pip install --upgrade pip`);
|
||||
}
|
||||
function findRelease(releases, pythonVersion, pypyVersion, architecture, includePrerelease) {
|
||||
const options = { includePrerelease: includePrerelease };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue