1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-06-08 14:37:00 +09:00

Don't attempt to update pip for graalpy

This commit is contained in:
Michael Simacek 2023-08-25 17:10:44 +02:00
parent b69593376d
commit b271e81dd1

View file

@ -148,13 +148,9 @@ async function createGraalPySymlink(
}
async function installPip(pythonLocation: string) {
core.info('Installing and updating pip');
core.info("Installing pip (GraalPy doesn't update pip because it uses a patched version of pip)");
const pythonBinary = path.join(pythonLocation, 'python');
await exec.exec(`${pythonBinary} -m ensurepip`);
await exec.exec(
`${pythonLocation}/python -m pip install --ignore-installed pip`
);
await exec.exec(`${pythonBinary} -m ensurepip --default-pip`);
}
export function graalPyTagToVersion(tag: string) {