Fix PyPy pip downgrade install state

This commit is contained in:
dajiaohuang 2026-10-22 04:44:29 +08:00
parent ec52d0af72
commit e201669395
3 changed files with 13 additions and 5 deletions

3
dist/setup/index.js vendored
View file

@ -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 };