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(