Wed Apr 3 19:36:38 2024 UTC (64d)
math/py-scipy: pass -j$MAKE_JOBS to ninja

This avoids hogging all (virtual) CPU cores during build. This should be
set generically in wheel.mk or such, though.


(thor)
diff -r1.75 -r1.76 pkgsrc/math/py-scipy/Makefile

cvs diff -r1.75 -r1.76 pkgsrc/math/py-scipy/Makefile (expand / switch to unified diff)

--- pkgsrc/math/py-scipy/Makefile 2023/12/27 22:42:02 1.75
+++ pkgsrc/math/py-scipy/Makefile 2024/04/03 19:36:38 1.76
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.75 2023/12/27 22:42:02 thor Exp $ 1# $NetBSD: Makefile,v 1.76 2024/04/03 19:36:38 thor Exp $
2 2
3DISTNAME= scipy-1.11.4 3DISTNAME= scipy-1.11.4
4PKGREVISION= 2 4PKGREVISION= 2
5PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 5PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
6CATEGORIES= math python 6CATEGORIES= math python
7MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/} 7MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/}
8 8
9MAINTAINER= markd@NetBSD.org 9MAINTAINER= markd@NetBSD.org
10HOMEPAGE= https://www.scipy.org/ 10HOMEPAGE= https://www.scipy.org/
11COMMENT= Scientific Algorithms Library for Python 11COMMENT= Scientific Algorithms Library for Python
12LICENSE= modified-bsd 12LICENSE= modified-bsd
13 13
14TOOL_DEPENDS+= ${PYPKGPREFIX}-cython>=0.29.35:../../devel/py-cython 14TOOL_DEPENDS+= ${PYPKGPREFIX}-cython>=0.29.35:../../devel/py-cython
@@ -54,26 +54,27 @@ FFLAGS+= -fPIC @@ -54,26 +54,27 @@ FFLAGS+= -fPIC
54LDFLAGS.Darwin+= -headerpad_max_install_names 54LDFLAGS.Darwin+= -headerpad_max_install_names
55 55
56# Same as for py-numpy. 56# Same as for py-numpy.
57# Except that py-scipy needs explicit linkage to libblas.so for 57# Except that py-scipy needs explicit linkage to libblas.so for
58# netlib (otherwise there will be missing symbols in _superlu.so (vendored). 58# netlib (otherwise there will be missing symbols in _superlu.so (vendored).
59# Meson will locate libcblas itself with -Dblas=blas by guesswork, 59# Meson will locate libcblas itself with -Dblas=blas by guesswork,
60# satisfying the meson setup. Proper fix is a future meson build where 60# satisfying the meson setup. Proper fix is a future meson build where
61# one can specify blas and cblas separately. The distinction 61# one can specify blas and cblas separately. The distinction
62# does not matter for openblas. 62# does not matter for openblas.
63BLAS_ACCEPTED= ${_BLAS_TYPES} 63BLAS_ACCEPTED= ${_BLAS_TYPES}
64BLAS_C_INTERFACE= yes 64BLAS_C_INTERFACE= yes
65WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} 65WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC}
66WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} 66WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC}
 67WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS}
67 68
68PYTHON_VERSIONS_INCOMPATIBLE= 27 38 69PYTHON_VERSIONS_INCOMPATIBLE= 27 38
69 70
70.include "../../mk/bsd.prefs.mk" 71.include "../../mk/bsd.prefs.mk"
71 72
72.if ${OPSYS} == "Darwin" 73.if ${OPSYS} == "Darwin"
73.PHONY: fix-darwin-install-name 74.PHONY: fix-darwin-install-name
74post-install: fix-darwin-install-name 75post-install: fix-darwin-install-name
75fix-darwin-install-name: 76fix-darwin-install-name:
76 ${FIND} ${DESTDIR}${PREFIX} -name "*.so" | \ 77 ${FIND} ${DESTDIR}${PREFIX} -name "*.so" | \
77 while read lib; do \ 78 while read lib; do \
78 libname=`basename $${lib}`; \ 79 libname=`basename $${lib}`; \
79 libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \ 80 libdir=`dirname $${lib} | sed -e 's,${DESTDIR},,'`; \