From d5b8d9b7549fec2a8c0eb09a3770dcd34d10e837 Mon Sep 17 00:00:00 2001 From: AlyonaSviridenko Date: Fri, 9 Apr 2021 12:56:20 +0300 Subject: [PATCH] removed extra condition about arch --- dist/index.js | 4 ---- src/find-pypy.ts | 5 ----- 2 files changed, 9 deletions(-) diff --git a/dist/index.js b/dist/index.js index 151dcba4..16cab227 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1108,10 +1108,6 @@ function findPyPyVersion(versionSpec, architecture) { let resolvedPythonVersion = ''; let installDir; const pypyVersionSpec = parsePyPyVersion(versionSpec); - // PyPy only precompiles binaries for x86, but the architecture parameter defaults to x64. - if (utils_1.IS_WINDOWS && architecture === 'x64') { - architecture = 'x86'; - } ({ installDir, resolvedPythonVersion, resolvedPyPyVersion } = findPyPyToolCache(pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion, architecture)); if (!installDir) { ({ diff --git a/src/find-pypy.ts b/src/find-pypy.ts index d809a4f2..eb8dfac6 100644 --- a/src/find-pypy.ts +++ b/src/find-pypy.ts @@ -28,11 +28,6 @@ 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') { - architecture = 'x86'; - } - ({installDir, resolvedPythonVersion, resolvedPyPyVersion} = findPyPyToolCache( pypyVersionSpec.pythonVersion, pypyVersionSpec.pypyVersion,