10000 Merge pull request #10 from colesbury/quansight · colesbury/setup-python@550c8a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 550c8a0

Browse files
authored
Merge pull request actions#10 from colesbury/quansight
Add 't' suffix to python-version output
2 parents 869aeaf + 2557c13 commit 550c8a0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

dist/setup/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99626,7 +99626,12 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
9962699626
// On Linux and macOS, pip will create the --user directory and add it to PATH as needed.
9962799627
}
9962899628
const installed = versionFromPath(installDir);
99629-
core.setOutput('python-version', installed);
99629+
let pythonVersion = installed;
99630+
if (freethreaded) {
99631+
// Add the freethreaded suffix to the version (e.g., 3.13.1t)
99632+
pythonVersion += 't';
99633+
}
99634+
core.setOutput('python-version', pythonVersion);
9963099635
core.setOutput('python-path', pythonPath);
9963199636
return { impl: 'CPython', version: installed };
9963299637
});

src/find-python.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,12 @@ export async function useCpythonVersion(
165165
}
166166

167167
const installed = versionFromPath(installDir);
168-
core.setOutput('python-version', installed);
168+
let pythonVersion = installed;
169+
if (freethreaded) {
170+
// Add the freethreaded suffix to the version (e.g., 3.13.1t)
171+
pythonVersion += 't';
172+
}
173+
core.setOutput('python-version', pythonVersion);
169174
core.setOutput('python-path', pythonPath);
170175

171176
return {impl: 'CPython', version: installed};

0 commit comments

Comments
 (0)
0