Date: Thu, 15 Jan 2026 12:00:49 +0000 From: Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 34d7297a6cd7 - main - science/py-scipy: Allow build with cython 3.2.0+ Message-ID: <6968d6f1.3a5e7.77da84dd@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=34d7297a6cd755117a842de165f4b92fa8e19018 commit 34d7297a6cd755117a842de165f4b92fa8e19018 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-01-15 11:45:35 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-01-15 11:54:13 +0000 science/py-scipy: Allow build with cython 3.2.0+ - Bump PORTREVISION for package change PR: 291778 --- science/py-scipy/files/patch-cython | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/science/py-scipy/files/patch-cython b/science/py-scipy/files/patch-cython new file mode 100644 index 000000000000..586b9ca4ca59 --- /dev/null +++ b/science/py-scipy/files/patch-cython @@ -0,0 +1,32 @@ +Obtained from: https://github.com/scipy/scipy/commit/3c89445b6439f3ce7bffc4cf11c6407c39faedc5 + https://github.com/scipy/scipy/commit/217748476403a1e5726a921cedb674e7ffbc952e + +--- scipy/_lib/_ccallback_c.pyx.orig 1970-01-01 00:00:00 UTC ++++ scipy/_lib/_ccallback_c.pyx +@@ -58,7 +58,7 @@ def get_raw_capsule(func_obj, name_obj, context_obj): + elif context_obj is None: + context = NULL + else: +- context = PyLong_AsVoidPtr(long(context_obj)) ++ context = PyLong_AsVoidPtr(int(context_obj)) + + if PyCapsule_CheckExact(func_obj): + capsule_name = PyCapsule_GetName(func_obj) +@@ -70,7 +70,7 @@ def get_raw_capsule(func_obj, name_obj, context_obj): + if name == NULL: + name = capsule_name + else: +- func = PyLong_AsVoidPtr(long(func_obj)) ++ func = PyLong_AsVoidPtr(int(func_obj)) + + if name == NULL: + name_copy = name +--- scipy/optimize/cython_optimize.pxd.orig 1970-01-01 00:00:00 UTC ++++ scipy/optimize/cython_optimize.pxd +@@ -7,5 +7,5 @@ + # support. Changing it causes an ABI forward-compatibility break + # (gh-11793), so we currently leave it as is (no further cimport + # statements should be used in this file). +-from .cython_optimize._zeros cimport ( ++from scipy.optimize.cython_optimize._zeros cimport ( + brentq, brenth, ridder, bisect, zeros_full_output)home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6968d6f1.3a5e7.77da84dd>
