added 'Scripts' folder to PATH on Windows

This commit is contained in:
Nikita Bykov 2020-12-16 15:07:55 +03:00
parent 6aa0ca37ca
commit 6e67af9be5

View file

@ -66,6 +66,10 @@ function usePyPy(
core.addPath(installDir); core.addPath(installDir);
core.addPath(_binDir); 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(); const impl = 'pypy' + majorVersion.toString();
core.setOutput('python-version', impl); core.setOutput('python-version', impl);