We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae50fa commit eb52a8bCopy full SHA for eb52a8b
scripts/fetch-vendor.py
@@ -9,12 +9,11 @@
9
10
def get_platform():
11
system = platform.system()
12
- is_arm64 = platform.machine() in ("arm64", "aarch64")
+ machine = platform.machine().lower()
13
+ is_arm64 = machine in {"arm64", "aarch64"}
14
if system == "Linux":
- 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"
+ prefix = "manylinux-" if platform.libc_ver()[0] == "glibc" else "musllinux-"
+ return prefix + machine
18
elif system == "Darwin":
19
return "macos-arm64" if is_arm64 else "macos-x86_64"
20
elif system == "Windows":
0 commit comments