From b271e81dd16a798438a2f92b78540b6985b83375 Mon Sep 17 00:00:00 2001 From: Michael Simacek Date: Fri, 25 Aug 2023 17:10:44 +0200 Subject: [PATCH] Don't attempt to update pip for graalpy --- src/install-graalpy.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/install-graalpy.ts b/src/install-graalpy.ts index 5494305f..a31a6b2e 100644 --- a/src/install-graalpy.ts +++ b/src/install-graalpy.ts @@ -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) {