From 0b865b97c91957c062c9190d58148203f05d5df0 Mon Sep 17 00:00:00 2001 From: Aparna Jyothi Date: Fri, 2 May 2025 18:27:28 +0530 Subject: [PATCH] code update for freethreaded --- dist/setup/index.js | 3 +++ src/find-python.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/dist/setup/index.js b/dist/setup/index.js index 7b2a2d4a..98ac87d0 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96897,6 +96897,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest // Append 't' for freethreaded builds if (freethreaded) { versionSuffix += 't'; + if (architecture === 'x86-freethreaded') { + versionSuffix += '-32'; + } } // Add user Scripts path const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts'); diff --git a/src/find-python.ts b/src/find-python.ts index e6f24c86..c54edca9 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -168,6 +168,9 @@ export async function useCpythonVersion( // Append 't' for freethreaded builds if (freethreaded) { versionSuffix += 't'; + if (architecture === 'x86-freethreaded') { + versionSuffix += '-32'; + } } // Add user Scripts path const userScriptsDir = path.join(