Skip to content

Commit 1446aeb

Browse files
authored
chore: use openblas on manylinux_2_28 (#449)
Prepare for python 3.12, numpy will require OpenBLAS rather than atlas. Furthermore, atlas fails randomly on travis-ci on manylinux_2_28 with a `assertion !pthread_create(&thr->thrH, &attr, rout, arg) failed, line 119 of file /builddir/build/BUILD/ATLAS/s390x_base/..//src/threads/ATL_thread_start.c` message so this should take care of that as well.
1 parent f8a7ff6 commit 1446aeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/test_manylinux.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ def build_numpy(container, policy, output_dir):
203203

204204
if policy.startswith("musllinux_"):
205205
docker_exec(container, "apk add openblas-dev")
206+
elif policy.startswith("manylinux_2_28_"):
207+
docker_exec(container, "dnf install -y openblas-devel")
206208
else:
207209
docker_exec(container, "yum install -y atlas atlas-devel")
208210

@@ -264,7 +266,7 @@ def test_build_repair_numpy(
264266
policy, tag, manylinux_ctr = any_manylinux_container
265267

266268
# First build numpy from source as a naive linux wheel that is tied
267-
# to system libraries (atlas, libgfortran...)
269+
# to system libraries (blas, libgfortran...)
268270
orig_wheel = build_numpy(manylinux_ctr, policy, io_folder)
269271
assert orig_wheel == ORIGINAL_NUMPY_WHEEL
270272
assert "manylinux" not in orig_wheel

0 commit comments

Comments
 (0)