File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 12
12
import tomli as tlib
13
13
14
14
15
+ IS_MUSL = os .environ .get ('MB_ML_LIBC' ) == 'musllinux'
16
+
17
+
15
18
def get_phase_requirements (repo_path , phase = 'build' ):
16
19
toml = (Path (repo_path ) / 'pyproject.toml' ).read_text ()
17
20
config = tlib .loads (toml )
@@ -28,15 +31,13 @@ def get_phase_requirements(repo_path, phase='build'):
28
31
def get_numpy_requirement (py_ver ):
29
32
major , minor , * _ = py_ver .split ('.' )
30
33
assert major == "3"
31
- musl = os .environ .get ('MB_ML_LIBC' ) == 'musllinux'
32
- # musllinux wheels started at 1.25.0
33
- np_version = "1.22.0" if not musl else '1.25.0'
34
34
minor = int (minor )
35
- if minor >= 12 :
36
- np_version = "1.26.0"
37
- elif minor >= 11 and not musl :
38
- np_version = "1.23.2"
39
- return np_version
35
+ # SPEC0-minimum as of Dec 23, 2023
36
+ if minor <= 8 :
37
+ if IS_MUSL :
38
+ raise RuntimeError ("MUSL doesn't have 3.8 wheels" )
39
+ return "1.22.0"
40
+ return "2.0.0"
40
41
41
42
42
43
def get_parser ():
You can’t perform that action at this time.
0 commit comments