diff --git a/src/find-python.ts b/src/find-python.ts index 6702430c..6cc21d48 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -66,6 +66,10 @@ 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')); + } const impl = 'pypy' + majorVersion.toString(); core.setOutput('python-version', impl);