8000 updated code logic for arm64 · aparnajyothi-y/setup-python@3d7ca5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d7ca5f< 8000 /span>

Browse files
updated code logic for arm64
1 parent 0b865b9 commit 3d7ca5f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dist/setup/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96894,12 +96894,18 @@ function useCpythonVersion(version, architecture, updateEnvironment, checkLatest
9689496894
(major > 3 || (major === 3 && minor >= 10))) {
9689596895
versionSuffix += '-32';
9689696896
}
96897+
else if (architecture === 'arm64') {
96898+
versionSuffix += '-arm64';
96899+
}
9689796900
// Append 't' for freethreaded builds
9689896901
if (freethreaded) {
9689996902
versionSuffix += 't';
9690096903
if (architecture === 'x86-freethreaded') {
9690196904
versionSuffix += '-32';
9690296905
}
96906+
else if (architecture === 'arm64-freethreaded') {
96907+
versionSuffix += '-arm64';
96908+
}
9690396909
}
9690496910
// Add user Scripts path
9690596911
const userScriptsDir = path.join(basePath, 'Python', `Python${versionSuffix}`, 'Scripts');

src/find-python.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,16 @@ export async function useCpythonVersion(
164164
(major > 3 || (major === 3 && minor >= 10))
165165
) {
166166
versionSuffix += '-32';
167+
} else if (architecture === 'arm64') {
168+
versionSuffix += '-arm64';
167169
}
168170
// Append 't' for freethreaded builds
169171
if (freethreaded) {
170172
versionSuffix += 't';
171173
if (architecture === 'x86-freethreaded') {
172174
versionSuffix += '-32';
175+
} else if (architecture === 'arm64-freethreaded') {
176+
versionSuffix += '-arm64';
173177
}
174178
}
175179
// Add user Scripts path

0 commit comments

Comments
 (0)
0