Skip to content

Commit 6b49974

Browse files
committed
fix: NumPy build on musl s390x
1 parent 44907d0 commit 6b49974

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration/test_manylinux.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ def build_numpy(container, policy, output_dir):
201201

202202
if policy.startswith("musllinux_"):
203203
docker_exec(container, "apk add openblas-dev")
204+
if policy.endswith("_s390x"):
205+
# https://github.com/numpy/numpy/issues/27932
206+
fix_hwcap = "echo '#define HWCAP_S390_VX 2048' >> /usr/include/bits/hwcap.h"
207+
docker_exec(container, f'sh -c "{fix_hwcap}"')
204208
elif policy.startswith("manylinux_2_28_"):
205209
docker_exec(container, "dnf install -y openblas-devel")
206210
else:

0 commit comments

Comments
 (0)