summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-02-21 22:42:46 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-09 18:02:00 +0000
commitf3d7d2b91ad24a0bbb3b7de80c6c2d5263122b8f (patch)
tree9b1661816f3414b53d73639d960bb4181f9883b4
parent134cbc66c593cf97426fd72466b721488a23b3a2 (diff)
downloadfreebsd-ports-f3d7d2b91ad24a0bbb3b7de80c6c2d5263122b8f.zip
devel/py-pykdtree: Fix build with cython 0.29.37+
(cherry picked from commit 01ac11f29c9581a42d28dc881817e1690c64e638)
-rw-r--r--devel/py-pykdtree/Makefile2
-rw-r--r--devel/py-pykdtree/files/patch-setup.py10
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"},
+ ),
+ ]