commit:     11368939dd1abeeb87e0ceadfe8efacd3e2d99ec
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 15:32:33 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=11368939

dev-python/trimesh: Disable LAPACK threads in xdist testing

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/trimesh/trimesh-4.8.2.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dev-python/trimesh/trimesh-4.8.2.ebuild 
b/dev-python/trimesh/trimesh-4.8.2.ebuild
index 4426867127a9..87c1a5ed6e06 100644
--- a/dev-python/trimesh/trimesh-4.8.2.ebuild
+++ b/dev-python/trimesh/trimesh-4.8.2.ebuild
@@ -67,6 +67,17 @@ EPYTEST_XDIST=1
 
 distutils_enable_tests pytest
 
+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
+
+       epytest
+}
+
 pkg_postinst() {
        optfeature_header "${PN} functionality can be extended by installing 
the following packages:"
        optfeature "making GUI applications with 3D stuff" dev-python/glooey

Reply via email to