git: 01ac11f29c95 - main - devel/py-pykdtree: Fix build with cython 0.29.37+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 21 Feb 2024 15:23:53 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=01ac11f29c9581a42d28dc881817e1690c64e638

commit 01ac11f29c9581a42d28dc881817e1690c64e638
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-02-21 14:42:46 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-02-21 15:07:42 +0000

    devel/py-pykdtree: Fix build with cython 0.29.37+
---
 devel/py-pykdtree/Makefile             |  2 --
 devel/py-pykdtree/files/patch-setup.py | 10 ++++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

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
@@ -11,8 +11,6 @@ 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}
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"},
+               ),
+ ]