commit: d9debb1a622aac4dfdb3b20b83491594b83da5c6
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 15:25:01 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 16:11:20 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9debb1a
dev-python/scipy: Disable LAPACK threads in xdist testing
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/scipy/scipy-1.16.2.ebuild | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dev-python/scipy/scipy-1.16.2.ebuild
b/dev-python/scipy/scipy-1.16.2.ebuild
index e1d78fe8791d..8f3a70a78ea4 100644
--- a/dev-python/scipy/scipy-1.16.2.ebuild
+++ b/dev-python/scipy/scipy-1.16.2.ebuild
@@ -117,6 +117,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
+
cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
local EPYTEST_DESELECT=(