mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-08 04:18:19 +02:00
updated code logic for arm64
This commit is contained in:
parent
0b865b97c9
commit
3d7ca5fea2
2 changed files with 10 additions and 0 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -96894,12 +96894,18 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
|
|||
(major > 3 || (major === 3 && minor >= 10))) {
|
||||
versionSuffix += '-32';
|
||||
}
|
||||
else if (architecture === 'arm64') {
|
||||
versionSuffix += '-arm64';
|
||||
}
|
||||
// Append 't' for freethreaded builds
|
||||
if (freethreaded) {
|
||||
versionSuffix += 't';
|
||||
if (architecture === 'x86-freethreaded') {
|
||||
versionSuffix += '-32';
|
||||
}
|
||||
else if (architecture === 'arm64-freethreaded') {
|
||||
versionSuffix += '-arm64';
|
||||
}
|
||||
}
|
||||
// Add user Scripts path
|
||||
const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts');
|
||||
|
|
|
@ -164,12 +164,16 @@ export async function useCpythonVersion(
|
|||
(major > 3 || (major === 3 && minor >= 10))
|
||||
) {
|
||||
versionSuffix += '-32';
|
||||
} else if (architecture === 'arm64') {
|
||||
versionSuffix += '-arm64';
|
||||
}
|
||||
// Append 't' for freethreaded builds
|
||||
if (freethreaded) {
|
||||
versionSuffix += 't';
|
||||
if (architecture === 'x86-freethreaded') {
|
||||
versionSuffix += '-32';
|
||||
} else if (architecture === 'arm64-freethreaded') {
|
||||
versionSuffix += '-arm64';
|
||||
}
|
||||
}
|
||||
// Add user Scripts path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue