8000 Fix PyPy installation on Windows to adopt new parameters format by AlenaSviridenko · Pull Request #201 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Fix PyPy installation on Windows to adopt new parameters format #201

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 11 commits into from
Apr 12, 2021
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
Next Next commit
uncommented condition
  • Loading branch information
AlenaSviridenko committed Apr 8, 2021
commit 63259a14e3ad5ead4cc5aed7100d220b8fead8b3
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,9 @@ function findPyPyVersion(versionSpec, architecture) {
let installDir;
const pypyVersionSpec = parsePyPyVersion(versionSpec);
// PyPy only precompiles binaries for x86, but the architecture parameter defaults to x64.
/*if (IS_WINDOWS && architecture === 'x64') {
architecture = 'x86';
}*/
if (utils_1.IS_WINDOWS && architecture === 'x64') {
architecture = 'x86';
}
({ installDir, resolvedPythonVersion, resolvedPyPyVersion } = findPyPyToolCache(pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture));
if (!installDir) {
({
Expand Down
4 changes: 2 additions & 2 deletions src/find-pypy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export async function findPyPyVersion(
const pypyVersionSpec = parsePyPyVersion(versionSpec);

// PyPy only precompiles binaries for x86, but the architecture parameter defaults to x64.
/*if (IS_WINDOWS && architecture === 'x64') {
if (IS_WINDOWS && architecture === 'x64') {
architecture = 'x86';
}*/
}

({installDir, resolvedPythonVersion, resolvedPyPyVersion} = findPyPyToolCache(
pypyVersionSpec.pythonVersion,
Expand Down
0