Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
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
8 changes: 8 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6738,6 +6738,14 @@ function usePyPy(majorVersion, architecture) {
core.exportVariable('pythonLocation', pythonLocation);
core.addPath(installDir);
core.addPath(_binDir);
// Starting from PyPy 7.3.1, the folder that is used for pip and anything that pip installs should be "Scripts" on Windows.
if (IS_WINDOWS) {
core.addPath(path.join(installDir, 'Scripts'));
}
if (IS_WINDOWS) {
const scriptDir = path.join(installDir, 'Scripts');
core.addPath(scriptDir);
}
const impl = 'pypy' + majorVersion.toString();
core.setOutput('python-version', impl);
return { impl: impl, version: versionFromPath(installDir) };
Expand Down
9 changes: 9 additions & 0 deletions src/find-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ function usePyPy(

core.addPath(installDir);
core.addPath(_binDir);
// Starting from PyPy 7.3.1, the folder that is used for pip and anything that pip installs should be "Scripts" on Windows.
if (IS_WINDOWS) {
core.addPath(path.join(installDir, 'Scripts'));
}

if (IS_WINDOWS) {
const scriptDir = path.join(installDir, 'Scripts');
core.addPath(scriptDir);
}
Comment thread
konradpabjan marked this conversation as resolved.
Resolved

const impl = 'pypy' + majorVersion.toString();
core.setOutput('python-version', impl);
Expand Down