1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-17 08:24:10 +02:00

logic update

This commit is contained in:
Aparna Jyothi 2025-04-22 12:38:37 +05:30
parent 4260a613f9
commit 1df3e3315a
3 changed files with 6 additions and 11 deletions

4
dist/setup/index.js vendored
View file

@ -96896,7 +96896,9 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
}
else {
// Handle Python < 3.10
const baseName = `Python${major}${minor}`;
const isFreeThreaded = core.getBooleanInput('freethreaded');
const suffix = isFreeThreaded ? 't' : '';
const baseName = `Python${major}${minor}${suffix}`;
const pythonPath = path.join(process.env['APPDATA'] || '', 'Python', baseName, 'Scripts');
core.addPath(pythonPath);
}