1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2025-06-08 06:27:00 +09:00

code update for freethreaded

This commit is contained in:
Aparna Jyothi 2025-05-02 18:27:28 +05:30
parent 404bd3b57d
commit 0b865b97c9
2 changed files with 6 additions and 0 deletions

3
dist/setup/index.js vendored
View file

@ -96897,6 +96897,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
// Append 't' for freethreaded builds // Append 't' for freethreaded builds
if (freethreaded) { if (freethreaded) {
versionSuffix += 't'; versionSuffix += 't';
if (architecture === 'x86-freethreaded') {
versionSuffix += '-32';
}
} }
// Add user Scripts path // Add user Scripts path
const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts'); const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts');

View file

@ -168,6 +168,9 @@ export async function useCpythonVersion(
// Append 't' for freethreaded builds // Append 't' for freethreaded builds
if (freethreaded) { if (freethreaded) {
versionSuffix += 't'; versionSuffix += 't';
if (architecture === 'x86-freethreaded') {
versionSuffix += '-32';
}
} }
// Add user Scripts path // Add user Scripts path
const userScriptsDir = path.join( const userScriptsDir = path.join(