Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2831efe

Browse filesBrowse files
nikita-bykovNikita Bykovdmitry-shibanov
authored
Improve find-python to add "Scripts" folder to PATH on Windows machines (actions#169)
* added 'Scripts' folder to PATH on Windows * add release code * update index.js * rebuild index.js * remove duplicate block Co-authored-by: Nikita Bykov <v-nibyko@microsoft.com> Co-authored-by: Dmitry Shibanov <dmitry-shibanov@github.com>
1 parent 3b3f2de commit 2831efe
Copy full SHA for 2831efe

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed

‎dist/index.js

Copy file name to clipboardExpand all lines: dist/index.js
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6738,6 +6738,10 @@ function usePyPy(majorVersion, architecture) {
67386738
core.exportVariable('pythonLocation', pythonLocation);
67396739
core.addPath(installDir);
67406740
core.addPath(_binDir);
6741+
// Starting from PyPy 7.3.1, the folder that is used for pip and anything that pip installs should be "Scripts" on Windows.
6742+
if (IS_WINDOWS) {
6743+
core.addPath(path.join(installDir, 'Scripts'));
6744+
}
67416745
const impl = 'pypy' + majorVersion.toString();
67426746
core.setOutput('python-version', impl);
67436747
return { impl: impl, version: versionFromPath(installDir) };

‎src/find-python.ts

Copy file name to clipboardExpand all lines: src/find-python.ts
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ function usePyPy(
6666

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.