| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.118 2024/01/04 22:06:13 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.119 2024/01/15 17:50:34 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= numpy-1.26.3 | | 3 | DISTNAME= numpy-1.26.3 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= math python | | 5 | CATEGORIES= math python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= https://www.numpy.org/ | | 9 | HOMEPAGE= https://www.numpy.org/ |
10 | COMMENT= Array processing for numbers, strings, records, and objects | | 10 | COMMENT= Array processing for numbers, strings, records, and objects |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python | | 13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python |
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython | | 14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython |
| @@ -70,31 +70,33 @@ BLAS_C_INTERFACE= yes | | | @@ -70,31 +70,33 @@ BLAS_C_INTERFACE= yes |
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. |
74 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} | | 74 | WHEEL_ARGS+= -Csetup-args=-Dblas=${BLAS_PC} |
75 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} | | 75 | WHEEL_ARGS+= -Csetup-args=-Dlapack=${LAPACK_PC} |
76 | | | 76 | |
77 | # Remove invalid __STDC_VERSION__ setting | | 77 | # Remove invalid __STDC_VERSION__ setting |
78 | BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 | | 78 | BUILDLINK_TRANSFORM.SunOS+= rm:-D__STDC_VERSION__=0 |
79 | | | 79 | |
80 | pre-configure: | | 80 | pre-configure: |
81 | ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython | | 81 | ${LN} -sf ${PREFIX}/bin/cython-${PYVERSSUFFIX} ${BUILDLINK_DIR}/bin/cython |
82 | | | 82 | |
| | | 83 | # Files don't exist with Python 3.12, so add '-f' to ${RM} |
| | | 84 | # (Please check if this is still necessary after updates.) |
83 | post-install: | | 85 | post-install: |
84 | ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig | | 86 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/command/config.py.orig |
85 | ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig | | 87 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/__init__.py.orig |
86 | ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig | | 88 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/g95.py.orig |
87 | ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/gnu.py.orig | | 89 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/fcompiler/gnu.py.orig |
88 | ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/log.py.orig | | 90 | ${RM} -f ${DESTDIR}${PREFIX}/${PYSITELIB}/numpy/distutils/log.py.orig |
89 | cd ${DESTDIR}${PREFIX}/bin && ${MV} f2py f2py-${PYVERSSUFFIX} || ${TRUE} | | 91 | cd ${DESTDIR}${PREFIX}/bin && ${MV} f2py f2py-${PYVERSSUFFIX} || ${TRUE} |
90 | | | 92 | |
91 | # as of 1.26.1 | | 93 | # as of 1.26.1 |
92 | # 28 failed, 38180 passed, 200 skipped, 1304 deselected, 33 xfailed, 1 xpassed, 52 warnings | | 94 | # 28 failed, 38180 passed, 200 skipped, 1304 deselected, 33 xfailed, 1 xpassed, 52 warnings |
93 | do-test: | | 95 | do-test: |
94 | cd ${WRKDIR} && \ | | 96 | cd ${WRKDIR} && \ |
95 | ${SETENV} ${TEST_ENV} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" | | 97 | ${SETENV} ${TEST_ENV} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()" |
96 | | | 98 | |
97 | .include "../../lang/python/application.mk" | | 99 | .include "../../lang/python/application.mk" |
98 | .include "../../lang/python/wheel.mk" | | 100 | .include "../../lang/python/wheel.mk" |
99 | .include "../../mk/blas.buildlink3.mk" | | 101 | .include "../../mk/blas.buildlink3.mk" |
100 | .include "../../mk/bsd.pkg.mk" | | 102 | .include "../../mk/bsd.pkg.mk" |