Skip to content

Commit f7b3c3c

Browse files
authored
Merge pull request #1 from mgorny/abi3.abi3t
fix asserting for abi3.abi3t tag being supported
2 parents 87b0b19 + 0372a0a commit f7b3c3c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

setuptools/command/bdist_wheel.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,12 @@ def get_tag(self) -> tuple[str, str, str]:
376376
supported_tags = [
377377
(t.interpreter, t.abi, plat_name) for t in tags.sys_tags()
378378
]
379-
assert tag in supported_tags, (
380-
f"would build wheel with unsupported tag {tag}"
381-
)
379+
# abi_tag can contain multiple (e.g. "abi3.abi3t") tags
380+
# only one of them will be supported
381+
assert any(
382+
(impl, exploded_abi_tag, plat_name) in supported_tags
383+
for exploded_abi_tag in abi_tag.split(".")
384+
), f"would build wheel with unsupported tag {tag}"
382385
return tag
383386

384387
def run(self):

0 commit comments

Comments
 (0)