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`.