mirror of
https://github.com/actions/setup-python.git
synced 2025-06-08 06:27:00 +09: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))) {
|
(major > 3 || (major === 3 && minor >= 10))) {
|
||||||
versionSuffix += '-32';
|
versionSuffix += '-32';
|
||||||
}
|
}
|
||||||
|
else if (architecture === 'arm64') {
|
||||||
|
versionSuffix += '-arm64';
|
||||||
|
}
|
||||||
// Append 't' for freethreaded builds
|
// Append 't' for freethreaded builds
|
||||||
if (freethreaded) {
|
if (freethreaded) {
|
||||||
versionSuffix += 't';
|
versionSuffix += 't';
|
||||||
if (architecture === 'x86-freethreaded') {
|
if (architecture === 'x86-freethreaded') {
|
||||||
versionSuffix += '-32';
|
versionSuffix += '-32';
|
||||||
}
|
}
|
||||||
|
else if (architecture === 'arm64-freethreaded') {
|
||||||
|
versionSuffix += '-arm64';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Add user Scripts path
|
// Add user Scripts path
|
||||||
const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts');
|
const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts');
|
||||||
|
|
|
@ -164,12 +164,16 @@ export async function useCpythonVersion(
|
||||||
(major > 3 || (major === 3 && minor >= 10))
|
(major > 3 || (major === 3 && minor >= 10))
|
||||||
) {
|
) {
|
||||||
versionSuffix += '-32';
|
versionSuffix += '-32';
|
||||||
|
} else if (architecture === 'arm64') {
|
||||||
|
versionSuffix += '-arm64';
|
||||||
}
|
}
|
||||||
// Append 't' for freethreaded builds
|
// Append 't' for freethreaded builds
|
||||||
if (freethreaded) {
|
if (freethreaded) {
|
||||||
versionSuffix += 't';
|
versionSuffix += 't';
|
||||||
if (architecture === 'x86-freethreaded') {
|
if (architecture === 'x86-freethreaded') {
|
||||||
versionSuffix += '-32';
|
versionSuffix += '-32';
|
||||||
|
} else if (architecture === 'arm64-freethreaded') {
|
||||||
|
versionSuffix += '-arm64';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Add user Scripts path
|
// Add user Scripts path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue