diff --git a/dist/index.js b/dist/index.js index 10d8a459..66d1fdee 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6646,9 +6646,9 @@ 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')); + const scriptDir = path.join(installDir, 'Scripts'); + core.addPath(scriptDir); } const impl = 'pypy' + majorVersion.toString(); core.setOutput('python-version', impl); diff --git a/src/find-python.ts b/src/find-python.ts index 6cc21d48..3e54712a 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -71,6 +71,11 @@ function usePyPy( 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);