1.16.3: Pull requests merged BUG: Fixes to numpy.distutils.Configuration.get_version BUG: Fix errors in string formatting while producing an error BUG: Convert fortran flags in environment variable BUG: Remove error-prone borrowed reference handling BUG: Add error checks when converting integers to datetime types BUG: Remove our patched version of `distutils.split_quoted` BUG: Fix testsuite failures on ppc and riscv BUG: Fix parameter validity checks in ``random.choice`` BUG: Ensure linspace works on object input. BLD: fix include list for sdist building. BUG: __array_interface__ offset was always ignored MAINT: f2py: Add a cast to avoid a compiler warning. BUG, MAINT: fix reference count error on invalid input to ndarray.flat ENH: Cast covariance to double in random mvnormal BUG: Fix null pointer dereference in PyArray_DTypeFromObjectHelper BUG: Use C call to sysctlbyname for AVX detection on MacOS. BUG: Fix crash when calling savetxt on a padded array BUG: ufunc.at iteration variable size fix DOC: Add as_ctypes_type to the documentation BUG: Return the coefficients array directly BUG/MAINT: Tidy typeinfo.h and .c BUG: Make allow_pickle=False the default for loading DOC: fix some doctest failures BUG/MAINT: Tidy typeinfo.h and .c BLD: address mingw-w64 issue. Follow-up to gh-9977 REL: Prepare for the NumPy release.
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.60 2019/04/24 10:09:59 adam Exp $
|
|
|
|
DISTNAME= numpy-1.16.3
|
|
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) && !empty(PKGSRC_FORTRAN:Mg95)
|
|
PYSETUPBUILDARGS+= --fcompiler=g95
|
|
.elif defined(PKGSRC_FORTRAN) && !empty(PKGSRC_FORTRAN:Mgfortran)
|
|
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:
|
|
${RUN} PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} ${PYTHONBIN} -c "import numpy; numpy.test()"
|
|
|
|
.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"
|