File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,9 @@ def platform_tag(self) -> str:
275
275
# latter specifies the target macOS version Python was built
276
276
# against.
277
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 ]
278
281
279
282
if parts [1 ] in ('11' , '12' ):
280
283
# Workaround for bug where pypa/packaging does not consider macOS
Original file line number Diff line number Diff line change 51
51
platform_ = sysconfig .get_platform ()
52
52
if platform .system () == 'Darwin' :
53
53
parts = platform_ .split ('-' )
54
- parts [1 ] = platform .mac_ver ()[0 ]
54
+ parts [1 ] = platform .mac_ver ()[0 ].split ('.' )[0 ]
55
+ if parts [1 ] in ('11' , '12' ):
56
+ parts [1 ] += '.0'
55
57
platform_ = '-' .join (parts )
56
58
PLATFORM_TAG = platform_ .replace ('-' , '_' ).replace ('.' , '_' )
57
59
You can’t perform that action at this time.
0 commit comments