mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-22 10:37:59 +02:00
logic update
This commit is contained in:
parent
32a58a97ef
commit
b22fe06733
4 changed files with 72 additions and 14 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -96817,9 +96817,6 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
|||
// 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`
|
||||
|
@ -96909,9 +96906,6 @@ 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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue