mirror of
https://github.com/actions/setup-python.git
synced 2025-02-23 15:20:30 +07:00
Add 't' suffix to python-version output
This commit is contained in:
parent
3794e54127
commit
1ec1b0d2bd
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
@ -91118,7 +91118,12 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
|||||||
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.
|
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.
|
||||||
}
|
}
|
||||||
const installed = versionFromPath(installDir);
|
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);
|
core.setOutput('python-path', pythonPath);
|
||||||
return { impl: 'CPython', version: installed };
|
return { impl: 'CPython', version: installed };
|
||||||
});
|
});
|
||||||
|
@ -165,7 +165,12 @@ export async function useCpythonVersion(
|
|||||||
}
|
}
|
||||||
|
|
||||||
const installed = versionFromPath(installDir);
|
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);
|
core.setOutput('python-path', pythonPath);
|
||||||
|
|
||||||
return {impl: 'CPython', version: installed};
|
return {impl: 'CPython', version: installed};
|
||||||
|
Loading…
Reference in New Issue
Block a user