mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-17 16:26:06 +02:00
Add 't' suffix to python-version output
This commit is contained in:
parent
3794e54127
commit
1ec1b0d2bd
2 changed files with 12 additions and 2 deletions
|
@ -165,7 +165,12 @@ export async function useCpythonVersion(
|
|||
}
|
||||
|
||||
const installed = versionFromPath(installDir);
|
||||
core.setOutput('python-version', installed);
|
||||
let pythonVersion = installed;
|
||||
if (freethreaded) {
|
||||
// Add the freethreaded suffix to the version (e.g., 3.13.1t)
|
||||
pythonVersion += 't';
|
||||
}
|
||||
core.setOutput('python-version', pythonVersion);
|
||||
core.setOutput('python-path', pythonPath);
|
||||
|
||||
return {impl: 'CPython', version: installed};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue