diff --git a/devel/py-pykdtree/Makefile b/devel/py-pykdtree/Makefile index 1e856c80a4dd..c5fc51f43163 100644 --- a/devel/py-pykdtree/Makefile +++ b/devel/py-pykdtree/Makefile @@ -1,27 +1,25 @@ PORTNAME= pykdtree PORTVERSION= 1.3.10 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= sunpoet@FreeBSD.org COMMENT= Fast kd-tree implementation with OpenMP-enabled queries WWW= https://github.com/storpipfugl/pykdtree LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/LICENSE.txt -BROKEN= Backend subprocess exited when trying to invoke build_wheel - BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} USES= python:3.9+ USE_PYTHON= autoplist concurrent cython pep517 post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + .include diff --git a/devel/py-pykdtree/files/patch-setup.py b/devel/py-pykdtree/files/patch-setup.py new file mode 100644 index 000000000000..8bae725c50dc --- /dev/null +++ b/devel/py-pykdtree/files/patch-setup.py @@ -0,0 +1,10 @@ +--- setup.py.orig 2023-11-29 18:29:08 UTC ++++ setup.py +@@ -188,7 +188,6 @@ with open('README.rst', 'r') as readme_file: + extensions = [ + Extension('pykdtree.kdtree', sources=['pykdtree/kdtree.pyx', 'pykdtree/_kdtree_core.c'], + include_dirs=[np.get_include()], +- define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")], + compiler_directions={"language_level": "3"}, + ), + ]