Skip to content

Commit a00bb92

Browse files
committed
BUG: ignore macOS minor version
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent 5b118fe commit a00bb92

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mesonpy/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,9 @@ def platform_tag(self) -> str:
275275
# latter specifies the target macOS version Python was built
276276
# against.
277277
parts[1] = platform.mac_ver()[0]
278+
# Only pick up the major version
279+
# https://github.com/FFY00/meson-python/issues/160
280+
parts[1] = parts[1].split('.')[0]
278281

279282
if parts[1] in ('11', '12'):
280283
# Workaround for bug where pypa/packaging does not consider macOS

0 commit comments

Comments
 (0)