Skip to content

Commit

Permalink
"darwin_x86_64" platform is rewritten as " darwin" for backward compa…
Browse files Browse the repository at this point in the history
…tibility
  • Loading branch information
Obijuan committed Jun 14, 2024
1 parent 9e6a1a9 commit eb854f3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ def get_systype() -> str:
if arch:
platform_str += f"_{arch}"

# -- Special case for Darwin: darwin_x86_64 is replace for darwin
# (for backward compatibility)
if "darwin_x86_64" in platform_str:
platform_str = "darwin"

# -- Return the full platform
return platform_str

Expand Down

0 comments on commit eb854f3

Please sign in to comment.