commit: 6b175232ec90623618a66ae8fb339628c926ed38
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 15:20:20 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 16:11:19 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b175232
dev-python/numpy: Disable LAPACK threads in xdist testing
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/numpy/numpy-2.3.3.ebuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dev-python/numpy/numpy-2.3.3.ebuild
b/dev-python/numpy/numpy-2.3.3.ebuild
index 9fbfb668b49e..5cf8a6772641 100644
--- a/dev-python/numpy/numpy-2.3.3.ebuild
+++ b/dev-python/numpy/numpy-2.3.3.ebuild
@@ -232,6 +232,13 @@ python_configure_all() {
}
python_test() {
+ # We run tests in parallel, so avoid having n^2 threads in lapack
+ # tests.
+ local -x BLIS_NUM_THREADS=1
+ local -x MKL_NUM_THREADS=1
+ local -x OMP_NUM_THREADS=1
+ local -x OPENBLAS_NUM_THREADS=1
+
# don't run tests that require more than 2 GiB of RAM (per process)
local -x NPY_AVAILABLE_MEM="2 GiB"