408cf7be40
Changes: - Add project URLs to setup.py - fix tests and ctypes code for PyPy - use npy_intp instead of int for indexing array - Ignore DeprecationWarning during nose imports - Fix use-after-free in boolean indexing - Fix errors in _add_newdocs - fix byte order reversal for datetime64[ns] - Use nbytes to also catch empty descr during allocation - np.array cleared errors occured in PyMemoryView_FromObject - Fixes for Undefined Behavior Sanitizer (UBSan) errors. - ensure that casting to/from structured is properly checked. - fix histogram*d dispatchers - further fixup to histogram2d dispatcher. - Replace contextlib.suppress for Python 2.7 - fix compilation of 3rd party modules with Py_LIMITED_API... - Fix memory leak in dtype from dict contructor - Document array_function at a higher level. - add new recfunctions to __all__ - Remove stray print that causes a SystemError on python 3.7 - Pin pytest version to 5.0.1. - Enable huge pages in all Linux builds - fix behavior of structured_to_unstructured
60 lines
1.9 KiB
Makefile
60 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.62 2020/01/24 16:18:22 minskim Exp $
|
|
|
|
DISTNAME= numpy-1.16.5
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= math python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=n/numpy/}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.numpy.org/
|
|
COMMENT= Array processing for numbers, strings, records, and objects
|
|
LICENSE= modified-bsd
|
|
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
|
|
USE_LANGUAGES= c fortran
|
|
MAKE_ENV+= ATLAS=None
|
|
|
|
REPLACE_PYTHON+= *.py */*.py */*/*.py */*/*/*.py */*/*/*/*.py
|
|
|
|
# XXX Avoid picking up other compilers when installed
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "g95"
|
|
PYSETUPBUILDARGS+= --fcompiler=g95
|
|
.elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran"
|
|
PYSETUPBUILDARGS+= --fcompiler=gnu95
|
|
.elif !empty(PKGSRC_COMPILER:Mgcc)
|
|
PYSETUPBUILDARGS+= --fcompiler=gnu
|
|
.endif
|
|
|
|
# This package bypasses the wrappers and calls the compilers directly when
|
|
# linking, so ensure that we pass through requisite options.
|
|
LDFLAGS+= ${_COMPILER_ABI_FLAG.${ABI}}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# numpy fails using the gold linker with:
|
|
# fatal error: --sysroot=: must take a non-empty argument
|
|
# Work around it on DragonFly by specifying the classic gnu linker
|
|
MAKE_ENV.DragonFly+= LDVER=ld.bfd
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && ${RM} f2py || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKDIR} && \
|
|
${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()"
|
|
|
|
BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.2
|
|
.include "../../devel/py-cython/buildlink3.mk"
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.if ${OPSYS} != "Darwin"
|
|
# blas and lapack are not needed; numpy will use Accelerate.framework
|
|
.include "../../math/blas/buildlink3.mk"
|
|
.include "../../math/lapack/buildlink3.mk"
|
|
.endif
|
|
.include "../../mk/bsd.pkg.mk"
|