summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthor <thor@pkgsrc.org>2021-03-25 21:47:50 +0000
committerthor <thor@pkgsrc.org>2021-03-25 21:47:50 +0000
commit7be643cfb40af8e2d3eed9c5890c31f2d12d429b (patch)
treefe622a113e350b47df89cdcdfe4b3ae3efbcc6e6
parent0b7b644f555520f3ff56b640d503db4f5dd8dfd7 (diff)
downloadpkgsrc-7be643cfb40af8e2d3eed9c5890c31f2d12d429b.tar.gz
math/py-numpy: Actually use BLAS_LIBS and LAPACK_LIBS.
The previous state included our BLAS choice but the build did not honour the selected libs. This patches the config script to not search for LAPACK and BLAS, using our settings instead. Hopefull we can get that option upstreamed. Approved during freeze by wiz.
-rw-r--r--math/py-numpy/Makefile4
-rw-r--r--math/py-numpy/buildlink3.mk6
-rw-r--r--math/py-numpy/distinfo4
3 files changed, 10 insertions, 4 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index be68b8c5e38..212446c545d 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.74 2021/01/09 09:29:41 adam Exp $
+# $NetBSD: Makefile,v 1.75 2021/03/25 21:47:50 thor Exp $
DISTNAME= numpy-1.19.5
+PKGREVISION= 1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/}
@@ -18,6 +19,7 @@ TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
# error: 'for' loop initial declarations are only allowed in C99 mode
USE_LANGUAGES= c99 fortran
MAKE_ENV+= ATLAS=None
+MAKE_ENV+= BLAS_LIBS=${BLAS_LIBS:Q} LAPACK_LIBS=${LAPACK_LIBS:Q}
REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py
diff --git a/math/py-numpy/buildlink3.mk b/math/py-numpy/buildlink3.mk
index a7cb2cca874..d0f71d315e6 100644
--- a/math/py-numpy/buildlink3.mk
+++ b/math/py-numpy/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.7 2020/10/13 17:32:16 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.8 2021/03/25 21:47:50 thor Exp $
BUILDLINK_TREE+= py-numpy
@@ -18,6 +18,10 @@ BUILDLINK_PKGSRCDIR.py-numpy?= ../../math/py-numpy
.include "../../mk/bsd.fast.prefs.mk"
+# Dependend python packages re-use the BLAS_LIBS logic and
+# need this in the environment.
+MAKE_ENV+= BLAS_LIBS=${BLAS_LIBS:Q} LAPACK_LIBS=${LAPACK_LIBS:Q}
+
.if ${OPSYS} != "Darwin"
.include "../../mk/blas.buildlink3.mk"
.endif
diff --git a/math/py-numpy/distinfo b/math/py-numpy/distinfo
index 067fcce2987..bad03d67587 100644
--- a/math/py-numpy/distinfo
+++ b/math/py-numpy/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.56 2021/01/09 09:29:41 adam Exp $
+$NetBSD: distinfo,v 1.57 2021/03/25 21:47:50 thor Exp $
SHA1 (numpy-1.19.5.zip) = 61f0b3dad58ce97b14da9dccbee0722d36f26937
RMD160 (numpy-1.19.5.zip) = 3317c98790e8c2d1d9c36279b3451f09b6776935
@@ -7,5 +7,5 @@ Size (numpy-1.19.5.zip) = 7318340 bytes
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) = 01879a0ad3c5eb0133fcce46ce10a52cdd3df7a4
+SHA1 (patch-numpy_distutils_system__info.py) = 5f43d3108175dadc96a65b734c234d0b95053173
SHA1 (patch-numpy_linalg_lapack__litemodule.c) = e97ec871c2f33c3121b3c8471a9e5a74c3c798c8