diff --git a/dist/setup/index.js b/dist/setup/index.js index b0c41ae4..cf853b26 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -96887,6 +96887,8 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest const version = path.basename(path.dirname(installDir)); const major = semver.major(version); const minor = semver.minor(version); + const freethreadedInput = core.getInput('freethreaded'); + const freethreaded = freethreadedInput === 'true' || architecture.includes('freethreaded'); const basePath = process.env['APPDATA'] || ''; let versionSuffix = `${major}${minor}`; // Append '-32' for x86 architecture if Python version is >= 3.10 @@ -96906,6 +96908,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest else if (architecture === 'arm64-freethreaded') { versionSuffix += '-arm64'; } + else if (architecture === 'x64-freethreaded') { + versionSuffix += '-64'; + } } // 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 1aef2cec..a57390b7 100644 --- a/src/find-python.ts +++ b/src/find-python.ts @@ -156,6 +156,10 @@ export async function useCpythonVersion( const version = path.basename(path.dirname(installDir)); const major = semver.major(version); const minor = semver.minor(version); + const freethreadedInput = core.getInput('freethreaded'); + const freethreaded = + freethreadedInput === 'true' || architecture.includes('freethreaded'); + const basePath = process.env['APPDATA'] || ''; let versionSuffix = `${major}${minor}`; // Append '-32' for x86 architecture if Python version is >= 3.10 @@ -174,6 +178,8 @@ export async function useCpythonVersion( versionSuffix += '-32'; } else if (architecture === 'arm64-freethreaded') { versionSuffix += '-arm64'; + } else if (architecture === 'x64-freethreaded') { + versionSuffix += '-64'; } } // Add user Scripts path