Skip to content

Commit c4ae59f

Browse files
authored
fix: Fix macOS wheel tags reverting to the build host's OS version (#3)
1 parent 64eb4dc commit c4ae59f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ def finalize_options(self) -> None:
2424
target = os.environ.get("SEMBLE_GRAMMARS_WHEEL_PLATFORM")
2525
if target:
2626
self.plat_name = PLATFORM_WHEEL_TAGS[target]
27+
# finalize_options() above already computed plat_name_supplied from the
28+
# pre-override plat_name (empty), so get_tag() would otherwise ignore this
29+
# override for macOS tags and fall back to the build host's actual OS version.
30+
self.plat_name_supplied = True
2731

2832
def get_tag(self) -> tuple[str, str, str]:
2933
"""Return a python-version-independent tag, keeping only the platform part."""

src/semble_grammars/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.1.1"

0 commit comments

Comments
 (0)