git: f3d7d2b91ad2 - 2024Q1 - devel/py-pykdtree: Fix build with cython 0.29.37+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Mar 2024 18:02:14 UTC
The branch 2024Q1 has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=f3d7d2b91ad24a0bbb3b7de80c6c2d5263122b8f commit f3d7d2b91ad24a0bbb3b7de80c6c2d5263122b8f Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-02-21 14:42:46 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-03-09 18:02:00 +0000 devel/py-pykdtree: Fix build with cython 0.29.37+ (cherry picked from commit 01ac11f29c9581a42d28dc881817e1690c64e638) --- 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"}, + ), + ]