File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -398,9 +398,16 @@ def mac_platforms(
398
398
compat_version = major_version , 0
399
399
binary_formats = _mac_binary_formats (compat_version , arch )
400
400
for binary_format in binary_formats :
401
- yield "macosx_{major}_{minor}_{ binary_format}" .format (
402
- major = major_version , minor = 0 , binary_format = binary_format
401
+ yield "macosx_{major}_{binary_format}" .format (
402
+ major = major_version , binary_format = binary_format
403
403
)
404
+ # Mac OS 11 and 12 seem to omit the minor version, we will keep
405
+ # them for backwards compatibility and avoid generating tags
406
+ # with it in the future
407
+ if version <= (12 , 0 ):
408
+ yield "macosx_{major}_{minor}_{binary_format}" .format (
409
+ major = major_version , minor = 0 , binary_format = binary_format
410
+ )
404
411
405
412
if version >= (11 , 0 ):
406
413
# Mac OS 11 on x86_64 is compatible with binaries from previous releases.
You can’t perform that action at this time.
0 commit comments