Thu Apr 4 21:16:57 2024 UTC (48d)
py-numpy: fix previous - fall back to one if no job limit set


(wiz)
diff -r1.121 -r1.122 pkgsrc/math/py-numpy/Makefile

cvs diff -r1.121 -r1.122 pkgsrc/math/py-numpy/Makefile (expand / switch to unified diff)

--- pkgsrc/math/py-numpy/Makefile 2024/04/03 19:40:09 1.121
+++ pkgsrc/math/py-numpy/Makefile 2024/04/04 21:16:57 1.122
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.121 2024/04/03 19:40:09 thor Exp $ 1# $NetBSD: Makefile,v 1.122 2024/04/04 21:16:57 wiz Exp $
2 2
3DISTNAME= numpy-1.26.4 3DISTNAME= numpy-1.26.4
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= math python 5CATEGORIES= math python
6MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.numpy.org/ 9HOMEPAGE= https://www.numpy.org/
10COMMENT= Array processing for numbers, strings, records, and objects 10COMMENT= Array processing for numbers, strings, records, and objects
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python 13TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python
14TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython 14TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
@@ -63,27 +63,27 @@ LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}} @@ -63,27 +63,27 @@ LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
63# allowing/setting BLAS_INDEX64=yes. Scipy needs both variants right now, 63# allowing/setting BLAS_INDEX64=yes. Scipy needs both variants right now,
64# wich does not work without standardized symbol suffix. 64# wich does not work without standardized symbol suffix.
65# Will need -Csetup-args=Duse-ilp64, too. 65# Will need -Csetup-args=Duse-ilp64, too.
66# TODO: accelerate.framework has no pkg-config yet (see blas.buildlink3.mk). 66# TODO: accelerate.framework has no pkg-config yet (see blas.buildlink3.mk).
67BLAS_ACCEPTED= ${_BLAS_TYPES} 67BLAS_ACCEPTED= ${_BLAS_TYPES}
68BLAS_C_INTERFACE= yes 68BLAS_C_INTERFACE= yes
69# Cblas and lapack API (not lapacke) is desired. 69# Cblas and lapack API (not lapacke) is desired.
70# Meson build uses pkg-config since 1.26.2 (or elaborate own logic not 70# Meson build uses pkg-config since 1.26.2 (or elaborate own logic not
71# suitable here) and guesses for cblas if blas lib does not contain the 71# suitable here) and guesses for cblas if blas lib does not contain the
72# C interface. That covers netlib for us, and openblas builds serve 72# C interface. That covers netlib for us, and openblas builds serve
73# all APIs. 73# all APIs.
74WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} 74WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC}
75WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} 75WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC}
76WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS} 76WHEEL_ARGS+= -Ccompile-args=-j${MAKE_JOBS:U1}
77 77
78# Remove invalid __STDC_VERSION__ setting 78# Remove invalid __STDC_VERSION__ setting
79BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 79BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0
80 80
81pre-configure: 81pre-configure:
82 ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython 82 ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython
83 83
84# Files don't exist with Python 3.12, so add '-f' to ${RM} 84# Files don't exist with Python 3.12, so add '-f' to ${RM}
85# (Please check if this is still necessary after updates.) 85# (Please check if this is still necessary after updates.)
86post-install: 86post-install:
87 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig 87 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig
88 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig 88 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig
89 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig 89 ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig