Skip to content

Commit 16a5cd5

Browse files
committed
Set musllinux wheel dependency
1 parent 54eb854 commit 16a5cd5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

print_deps.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
""" Echo dependencies for given environment
33
"""
44

5+
import os
56
from pathlib import Path
67
from argparse import ArgumentParser, RawDescriptionHelpFormatter
78

@@ -19,11 +20,13 @@ def get_build_requirements(repo_path):
1920
def get_numpy_requirement(py_ver):
2021
major, minor, *_ = py_ver.split('.')
2122
assert major == "3"
22-
np_version = "1.22.2"
23+
musl = os.environ.get('MB_ML_LIBC') == 'musllinux'
24+
# musllinux wheels started at 1.25.0
25+
np_version = "1.22.2" if not musl else '1.25.0'
2326
minor = int(minor)
2427
if minor >= 12:
2528
np_version = "1.26.0"
26-
elif minor >= 11:
29+
elif minor >= 11 and not musl:
2730
np_version = "1.23.2"
2831
return np_version
2932

0 commit comments

Comments
 (0)