File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 25
25
with open (wheel_files [0 ]) as f :
26
26
wheel_lines = f .read ().splitlines ()
27
27
28
- # Alter the "Tag" to use 3.7+ Python, ABI3 limited API, or if macOS ARM,
29
- # manually set as 11_0 w/ 3.8+
28
+ # Alter the "Tag"
30
29
found_wheel_tag = False
31
30
for i , line in enumerate (wheel_lines ):
32
31
if line .startswith ("Tag: " ):
33
32
pieces = line [len ("Tag: " ) :].split ("-" )
34
33
if len (pieces ) < 3 :
35
34
raise RuntimeError ("Expecting at least 3 wheel tag pieces" )
35
+ # All tags need ABI3
36
36
pieces [1 ] = "abi3"
37
37
if pieces [2 ].startswith ("macosx_" ) and pieces [2 ].endswith ("_arm64" ):
38
+ # macOS ARM needs to be set to 3.8+ on 11+
38
39
pieces [0 ] = "cp38"
39
40
pieces [2 ] = "macosx_11_0_arm64"
41
+ elif pieces [2 ].startswith ("macosx_" ) and pieces [2 ].endswith ("_x86_64" ):
42
+ # macOS x86 needs to be set to 3.7+ on 10.9+
43
+ pieces [0 ] = "cp37"
44
+ pieces [2 ] = "macosx_10_9_x86_64"
40
45
else :
46
+ # All others just need to be set to 3.7+
41
47
pieces [0 ] = "cp37"
42
48
wheel_lines [i ] = "Tag: " + "-" .join (pieces )
43
49
found_wheel_tag = True
You can’t perform that action at this time.
0 commit comments