From 1446aeb42a5af113fcc200bf4a7f3479294083bd Mon Sep 17 00:00:00 2001 From: Matthieu Darbois Date: Mon, 11 Sep 2023 21:52:22 +0200 Subject: [PATCH] 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. --- tests/integration/test_manylinux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index 3c393311..5d3bd46f 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -203,6 +203,8 @@ def build_numpy(container, policy, output_dir): if policy.startswith("musllinux_"): docker_exec(container, "apk add openblas-dev") + elif policy.startswith("manylinux_2_28_"): + docker_exec(container, "dnf install -y openblas-devel") else: docker_exec(container, "yum install -y atlas atlas-devel") @@ -264,7 +266,7 @@ def test_build_repair_numpy( policy, tag, manylinux_ctr = any_manylinux_container # First build numpy from source as a naive linux wheel that is tied - # to system libraries (atlas, libgfortran...) + # to system libraries (blas, libgfortran...) orig_wheel = build_numpy(manylinux_ctr, policy, io_folder) assert orig_wheel == ORIGINAL_NUMPY_WHEEL assert "manylinux" not in orig_wheel