From 63259a14e3ad5ead4cc5aed7100d220b8fead8b3 Mon Sep 17 00:00:00 2001 From: AlyonaSviridenko Date: Thu, 8 Apr 2021 16:10:38 +0300 Subject: [PATCH] uncommented condition --- dist/index.js | 6 +++--- src/find-pypy.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 23decb23..7e0a6143 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { ({ diff --git a/src/find-pypy.ts b/src/find-pypy.ts index 850311dd..700ce9ee 100644 --- a/src/find-pypy.ts +++ b/src/find-pypy.ts @@ -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,