From eb854f32cb1c8f6cef134acd59d4dd6017f139ec Mon Sep 17 00:00:00 2001 From: Obijuan Date: Fri, 14 Jun 2024 11:44:01 +0200 Subject: [PATCH] "darwin_x86_64" platform is rewritten as " darwin" for backward compatibility --- apio/util.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apio/util.py b/apio/util.py index 76e303e6..4349959f 100644 --- a/apio/util.py +++ b/apio/util.py @@ -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