commit:     18f4949ab453e5ba986d55461841e3a5c138925a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 18 06:11:23 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 18 06:11:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18f4949a

dev-python/numpy: wire up noblas option, default enable lapack/blas

+lapack because the internal fallbacks are pretty slow. Building without blas
is barely supported anyway, see bug #914358.

Closes: https://bugs.gentoo.org/914358
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/numpy/numpy-1.26.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev-python/numpy/numpy-1.26.0.ebuild 
b/dev-python/numpy/numpy-1.26.0.ebuild
index bc6646bd3079..49c3b34adb9c 100644
--- a/dev-python/numpy/numpy-1.26.0.ebuild
+++ b/dev-python/numpy/numpy-1.26.0.ebuild
@@ -20,7 +20,9 @@ HOMEPAGE="
 
 LICENSE="BSD"
 SLOT="0"
-IUSE="lapack"
+# +lapack because the internal fallbacks are pretty slow. Building without blas
+# is barely supported anyway, see bug #914358.
+IUSE="+lapack"
 if [[ ${PV} != *_[rab]* ]] ; then
        KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
 fi
@@ -59,6 +61,7 @@ python_prepare_all() {
 
 python_configure_all() {
        DISTUTILS_ARGS=(
+               -Dallow-noblas=$(usex !lapack true false)
                -Dblas=$(usev lapack cblas)
                -Dlapack=$(usev lapack lapack)
                # TODO: cpu-* options

Reply via email to