Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't attempt to update pip for graalpy
  • Loading branch information
msimacek committed Aug 25, 2023
commit b271e81dd16a798438a2f92b78540b6985b83375
8 changes: 2 additions & 6 deletions src/install-graalpy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);

Check warning

Code scanning / CodeQL

Shell command built from environment values

This shell command depends on an uncontrolled [file name](1).
}

export function graalPyTagToVersion(tag: string) {
Expand Down