logic update

This commit is contained in:
Aparna Jyothi 2025-06-06 18:24:20 +05:30
parent 32a58a97ef
commit b22fe06733
4 changed files with 72 additions and 14 deletions

View file

@ -49,11 +49,7 @@ export async function useCpythonVersion(
// Use the freethreaded version if it was specified in the input, e.g., 3.13t
freethreaded = true;
}
if (architecture.endsWith('-freethreaded')) {
throw new Error(
`Invalid architecture '${architecture}'. Use 'freethreaded' flag in the python-version (e.g., '3.13.1t') or use freethreaded: true instead of specifying '-freethreaded' in the architecture`
);
}
core.debug(`Semantic version spec of ${version} is ${semanticVersionSpec}`);
if (freethreaded) {
// Free threaded versions use an architecture suffix like `x64-freethreaded`
@ -179,8 +175,6 @@ export async function useCpythonVersion(
versionSuffix += '-32';
} else if (architecture === 'arm64-freethreaded') {
versionSuffix += '-arm64';
} else if (architecture === 'x64-freethreaded') {
versionSuffix += '-64';
}
}
// Add user Scripts path