Skip to content

Commit d92e02c

Browse files
committed
fix: ARM
1 parent 481083c commit d92e02c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def get_version():
3030
'x86_64-apple-darwin': 'dylib',
3131
'x86_64-pc-windows-msvc': 'dll',
3232
'x86_64-unknown-linux-gnu': 'so',
33+
'aarch64-unknown-linux-gnu': 'so', # Add ARM Linux support
3334
}
3435

3536
# Directory structure
@@ -51,6 +52,7 @@ def get_platform_identifier(cpu_arch = None) -> str:
5152
- x86_64-apple-darwin (for Mac x86_64)
5253
- x86_64-pc-windows-msvc (for Windows 64-bit)
5354
- x86_64-unknown-linux-gnu (for Linux 64-bit)
55+
- aarch64-unknown-linux-gnu (for Linux ARM64)
5456
"""
5557
system = platform.system().lower()
5658

@@ -66,6 +68,8 @@ def get_platform_identifier(cpu_arch = None) -> str:
6668
elif system == "windows":
6769
return "x86_64-pc-windows-msvc"
6870
elif system == "linux":
71+
if platform.machine() == "aarch64":
72+
return "aarch64-unknown-linux-gnu"
6973
return "x86_64-unknown-linux-gnu"
7074
else:
7175
raise ValueError(f"Unsupported operating system: {system}")

0 commit comments

Comments
 (0)