@@ -274,25 +274,27 @@ def expected_wheels(
274
274
platform_tags = ["win32" , "win_amd64" ]
275
275
276
276
elif platform == "macos" :
277
+ if python_abi_tag .startswith ("pp" ):
278
+ if python_abi_tag .startswith (("pp37" , "pp38" )):
279
+ min_macosx = macosx_deployment_target
280
+ else :
281
+ min_macosx = _floor_macosx (macosx_deployment_target , "10.15" )
282
+ elif python_abi_tag .startswith ("cp" ):
283
+ if python_abi_tag .startswith (("cp36" , "cp37" , "cp38" , "cp39" , "cp310" , "cp311" )):
284
+ min_macosx = macosx_deployment_target
285
+ else :
286
+ min_macosx = _floor_macosx (macosx_deployment_target , "10.13" )
287
+ else :
288
+ min_macosx = macosx_deployment_target
289
+
277
290
if machine_arch == "arm64" :
278
- arm64_macosx = _floor_macosx (macosx_deployment_target , "11.0" )
291
+ arm64_macosx = _floor_macosx (min_macosx , "11.0" )
279
292
platform_tags = [f'macosx_{ arm64_macosx .replace ("." , "_" )} _arm64' ]
280
293
else :
281
- if python_abi_tag .startswith ("pp" ) and not python_abi_tag .startswith (
282
- ("pp37" , "pp38" )
283
- ):
284
- pypy_macosx = _floor_macosx (macosx_deployment_target , "10.15" )
285
- platform_tags = [f'macosx_{ pypy_macosx .replace ("." , "_" )} _x86_64' ]
286
- elif python_abi_tag .startswith ("cp313" ):
287
- pypy_macosx = _floor_macosx (macosx_deployment_target , "10.13" )
288
- platform_tags = [f'macosx_{ pypy_macosx .replace ("." , "_" )} _x86_64' ]
289
- else :
290
- platform_tags = [f'macosx_{ macosx_deployment_target .replace ("." , "_" )} _x86_64' ]
294
+ platform_tags = [f'macosx_{ min_macosx .replace ("." , "_" )} _x86_64' ]
291
295
292
296
if include_universal2 :
293
- platform_tags .append (
294
- f'macosx_{ macosx_deployment_target .replace ("." , "_" )} _universal2' ,
295
- )
297
+ platform_tags .append (f'macosx_{ min_macosx .replace ("." , "_" )} _universal2' )
296
298
else :
297
299
msg = f"Unsupported platform { platform !r} "
298
300
raise Exception (msg )
0 commit comments