mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 21:53:47 +00:00
logic update
This commit is contained in:
parent
32a58a97ef
commit
b22fe06733
4 changed files with 72 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue