Skip to content

Commit eb854f3

Browse files
committed
"darwin_x86_64" platform is rewritten as " darwin" for backward compatibility
1 parent 9e6a1a9 commit eb854f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apio/util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ def get_systype() -> str:
147147
if arch:
148148
platform_str += f"_{arch}"
149149

150+
# -- Special case for Darwin: darwin_x86_64 is replace for darwin
151+
# (for backward compatibility)
152+
if "darwin_x86_64" in platform_str:
153+
platform_str = "darwin"
154+
150155
# -- Return the full platform
151156
return platform_str
152157

0 commit comments

Comments
 (0)