We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b8d28 commit 62bafb2Copy full SHA for 62bafb2
mesonpy/__init__.py
@@ -275,9 +275,11 @@ def platform_tag(self) -> str:
275
# latter specifies the target macOS version Python was built
276
# against.
277
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]
+ if parts[1] >= '11':
+ # Only pick up the major version, which changed from 10.X
+ # to X.0 from macOS 11 onwards. See
281
+ # https://github.com/FFY00/meson-python/issues/160
282
+ parts[1] = parts[1].split('.')[0]
283
284
if parts[1] in ('11', '12'):
285
# Workaround for bug where pypa/packaging does not consider macOS
0 commit comments