From 6e67af9be59a5e955cae1701b76ae55a6dfc2686 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Wed, 16 Dec 2020 15:07:55 +0300 Subject: [PATCH] added 'Scripts' folder to PATH on Windows --- src/find-python.ts | 4 ++++ 1 file changed, 4 insertions(+) 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);