Skip to content

Commit eb52a8b

Browse files
Update get_platform() to support more archs
1 parent bae50fa commit eb52a8b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

scripts/fetch-vendor.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99

1010
def get_platform():
1111
system = platform.system()
12-
is_arm64 = platform.machine() in ("arm64", "aarch64")
12+
machine = platform.machine().lower()
13+
is_arm64 = machine in {"arm64", "aarch64"}
1314
if system == "Linux":
14-
if platform.libc_ver()[0] == "glibc":
15-
return "manylinux-aarch64" if is_arm64 else "manylinux-x86_64"
16-
else:
17-
return "musllinux-aarch64" if is_arm64 else "musllinux-x86_64"
15+
prefix = "manylinux-" if platform.libc_ver()[0] == "glibc" else "musllinux-"
16+
return prefix + machine
1817
elif system == "Darwin":
1918
return "macos-arm64" if is_arm64 else "macos-x86_64"
2019
elif system == "Windows":

0 commit comments

Comments
 (0)