8000 Improve find-python to add "Scripts" folder to PATH on Windows machines by nikita-bykov · Pull Request #169 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Improve find-python to add "Scripts" folder to PATH on Windows machines #169

8000 New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Dec 17, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove duplicate block
  • Loading branch information
dmitry-shibanov committed Dec 17, 2020
commit bedb244a49bd679c8bcf9660e08b4b5cc99a135c
4 changes: 0 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6742,10 +6742,6 @@ function usePyPy(majorVersion, architecture) {
if (IS_WINDOWS) {
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);
return { impl: impl, version: versionFromPath(installDir) };
Expand Down
5 changes: 0 additions & 5 deletions src/find-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ 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);

Expand Down
0