From f8fc5b38c3d92fd6ddf8b170cd66d53884661b08 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 28 Apr 2024 19:44:28 -0400 Subject: [PATCH] Use linux rather than manylinux or musllinux in tag --- hatch_build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hatch_build.py b/hatch_build.py index d635991..a8e7297 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -64,7 +64,13 @@ def _infer_tag(self) -> str: from packaging.tags import sys_tags - tag = next(sys_tags()) + tag = next( + iter( + tag + for tag in sys_tags() + if "manylinux" not in tag.platform and "musllinux" not in tag.platform + ) + ) tag_platform = tag.platform # On macOS, set the version based on `MACOSX_DEPLOYMENT_TARGET`.