File:  [cvs.NetBSD.org] / pkgsrc / math / py-numpy16 / patches / Attic / patch-numpy_distutils_system__info.py
Revision 1.2: download - view: text, annotated - select for diffs
Mon Oct 12 21:52:03 2020 UTC (4 years, 6 months ago) by bacon
Branches: MAIN
CVS tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, HEAD
math/blas, math/lapack: Install interchangeable BLAS system

Install the new interchangeable BLAS system created by Thomas Orgis,
currently supporting Netlib BLAS/LAPACK, OpenBLAS, cblas, lapacke, and
Apple's Accelerate.framework.  This system allows the user to select any
BLAS implementation without modifying packages or using package options, by
setting PKGSRC_BLAS_TYPES in mk.conf. See mk/blas.buildlink3.mk for details.

This commit should not alter behavior of existing packages as the system
defaults to Netlib BLAS/LAPACK, which until now has been the only supported
implementation.

Details:

Add new mk/blas.buildlink3.mk for inclusion in dependent packages
Install compatible Netlib math/blas and math/lapack packages
Update math/blas and math/lapack MAINTAINER approved by adam@
OpenBLAS, cblas, and lapacke will follow in separate commits
Update direct dependents to use mk/blas.buildlink3.mk
Perform recursive revbump

$NetBSD: patch-numpy_distutils_system__info.py,v 1.2 2020/10/12 21:52:03 bacon Exp $

Disable openblas detection.  In pkgsrc, use mk/blas.buildlink.mk.

--- numpy/distutils/system_info.py.orig	2018-04-02 21:18:11.535155000 +0000
+++ numpy/distutils/system_info.py
@@ -1531,12 +1531,12 @@ class lapack_opt_info(system_info):
             self.set_info(**lapack_mkl_info)
             return
 
-        openblas_info = get_info('openblas_lapack')
+        openblas_info = None
         if openblas_info:
             self.set_info(**openblas_info)
             return
 
-        openblas_info = get_info('openblas_clapack')
+        openblas_info = None
         if openblas_info:
             self.set_info(**openblas_info)
             return
@@ -1642,7 +1642,7 @@ class blas_opt_info(system_info):
             self.set_info(**blis_info)
             return
 
-        openblas_info = get_info('openblas')
+        openblas_info = None
         if openblas_info:
             self.set_info(**openblas_info)
             return

CVSweb <webmaster@jp.NetBSD.org>