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:
parent
4260a613f9
commit
1df3e3315a
3 changed files with 6 additions and 11 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue