pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/py-numpy math/py-numpy: hotfix for building py-scipy



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa1a1e704cfa
branches:  trunk
changeset: 449322:fa1a1e704cfa
user:      thor <thor%pkgsrc.org@localhost>
date:      Fri Mar 26 20:34:28 2021 +0000

description:
math/py-numpy: hotfix for building py-scipy

The downstream configure code freaked out when info['define_macros'] was not set.
It is now defined and empty.

I hope it's fine to just push this without further notice.

Build was confirmed by oster on NetBSD-9.1/amd64 and tested by me
on Linux/amd64.

diffstat:

 math/py-numpy/Makefile                                      |   4 +-
 math/py-numpy/distinfo                                      |   4 +-
 math/py-numpy/patches/patch-numpy_distutils_system__info.py |  16 ++++++++----
 3 files changed, 15 insertions(+), 9 deletions(-)

diffs (81 lines):

diff -r 1ede0e0e0aea -r fa1a1e704cfa math/py-numpy/Makefile
--- a/math/py-numpy/Makefile    Fri Mar 26 17:44:56 2021 +0000
+++ b/math/py-numpy/Makefile    Fri Mar 26 20:34:28 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.75 2021/03/25 21:47:50 thor Exp $
+# $NetBSD: Makefile,v 1.76 2021/03/26 20:34:28 thor Exp $
 
 DISTNAME=      numpy-1.19.5
-PKGREVISION=   1
+PKGREVISION=   2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    math python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=n/numpy/}
diff -r 1ede0e0e0aea -r fa1a1e704cfa math/py-numpy/distinfo
--- a/math/py-numpy/distinfo    Fri Mar 26 17:44:56 2021 +0000
+++ b/math/py-numpy/distinfo    Fri Mar 26 20:34:28 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.57 2021/03/25 21:47:50 thor Exp $
+$NetBSD: distinfo,v 1.58 2021/03/26 20:34:28 thor Exp $
 
 SHA1 (numpy-1.19.5.zip) = 61f0b3dad58ce97b14da9dccbee0722d36f26937
 RMD160 (numpy-1.19.5.zip) = 3317c98790e8c2d1d9c36279b3451f09b6776935
@@ -7,5 +7,5 @@
 SHA1 (patch-numpy_distutils_fcompiler_____init____.py) = 49d070da5b48bd9818b37ac3254341fa68503c53
 SHA1 (patch-numpy_distutils_fcompiler_g95.py) = be73b64a3e551df998b6a904d6db762bf28a98ed
 SHA1 (patch-numpy_distutils_fcompiler_gnu.py) = 1d62e1c5e35de0f2cf975de38f62df7f10c71d74
-SHA1 (patch-numpy_distutils_system__info.py) = 5f43d3108175dadc96a65b734c234d0b95053173
+SHA1 (patch-numpy_distutils_system__info.py) = e01c0ca1a7151f77ac9cfbccd44da44a0d354931
 SHA1 (patch-numpy_linalg_lapack__litemodule.c) = e97ec871c2f33c3121b3c8471a9e5a74c3c798c8
diff -r 1ede0e0e0aea -r fa1a1e704cfa math/py-numpy/patches/patch-numpy_distutils_system__info.py
--- a/math/py-numpy/patches/patch-numpy_distutils_system__info.py       Fri Mar 26 17:44:56 2021 +0000
+++ b/math/py-numpy/patches/patch-numpy_distutils_system__info.py       Fri Mar 26 20:34:28 2021 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-numpy_distutils_system__info.py,v 1.4 2021/03/25 22:09:07 thor Exp $
+$NetBSD: patch-numpy_distutils_system__info.py,v 1.5 2021/03/26 20:34:28 thor Exp $
 
 Disable openblas detection.  In pkgsrc, use mk/blas.buildlink.mk.
 
 --- numpy/distutils/system_info.py.orig        2020-06-02 05:24:58.000000000 +0000
 +++ numpy/distutils/system_info.py
-@@ -1730,34 +1722,15 @@ class lapack_opt_info(system_info):
+@@ -1730,34 +1722,18 @@ class lapack_opt_info(system_info):
          return getattr(self, '_calc_info_{}'.format(name))()
  
      def calc_info(self):
@@ -41,6 +41,9 @@
 +        # if it is not set.
 +        info = {}
 +        info['language'] = 'f77'
++        info['libraries'] = []
++        info['include_dirs'] = []
++        info['define_macros'] = []
 +        info['extra_link_args'] = os.environ['LAPACK_LIBS'].split()
 + 
 +        self.set_info(**info)
@@ -48,7 +51,7 @@
  
  
  class _ilp64_opt_info_mixin:
-@@ -1875,32 +1848,19 @@ class blas_opt_info(system_info):
+@@ -1875,32 +1848,22 @@ class blas_opt_info(system_info):
          return getattr(self, '_calc_info_{}'.format(name))()
  
      def calc_info(self):
@@ -82,11 +85,14 @@
 +        # Existence of BLAS_LIBS is mandatory. Things shall break early
 +        # if it is not set.
 +        info = {}
-+        # I do not want to assume a language. It is potentially mixed anyway.
-+        #info['language'] = 'c'
++        # We assume a generic BLAS, which is a Fortran lib.
++        info['language'] = 'f77'
 +        # Try to work without cblas, just link BLAS_LIBS.
 +        #info['libraries'] = ['cblas']
 +        #info['define_macros'] = [('HAVE_CBLAS', None)]
++        info['libraries'] = []
++        info['include_dirs'] = []
++        info['define_macros'] = []
 +        info['extra_link_args'] = os.environ['BLAS_LIBS'].split()
 + 
 +        self.set_info(**info)



Home | Main Index | Thread Index | Old Index