From: Stuart Henderson Subject: Re: tests wanted: numpy 2.4.0 To: Theo Buehler Cc: ports@openbsd.org Date: Wed, 7 Jan 2026 16:27:48 +0000 On 2026/01/06 20:08, Theo Buehler wrote: > Now that we have a modern gcc in our tree, we can update this port. I > thought I'd try 2.4.0 first. If there are concerns that this is too > recent, I can provide a diff for 2.3.5. scikit-learn seems to have a policy of setting the maximum permitted version to the highest version available at their release time, so has a numpy<2.4.0 restriction. no difference with their newer 1.8.0 release. the expected pyproject.toml patch seems ok. Index: Makefile =================================================================== RCS file: /cvs/ports/math/py-scikit-learn/Makefile,v diff -u -p -r1.28 Makefile --- Makefile 11 Sep 2025 21:56:43 -0000 1.28 +++ Makefile 7 Jan 2026 16:27:35 -0000 @@ -1,6 +1,7 @@ COMMENT = set of python modules for machine learning and data mining MODPY_DISTV = 1.7.2 +REVISION = 0 DISTNAME = scikit_learn-${MODPY_DISTV} PKGNAME = py-${DISTNAME:S/_/-/} Index: patches/patch-pyproject_toml =================================================================== RCS file: patches/patch-pyproject_toml diff -N patches/patch-pyproject_toml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-pyproject_toml 7 Jan 2026 16:27:35 -0000 @@ -0,0 +1,12 @@ +Index: pyproject.toml +--- pyproject.toml.orig ++++ pyproject.toml +@@ -99,7 +99,7 @@ build-backend = "mesonpy" + requires = [ + "meson-python>=0.16.0,<0.19.0", + "Cython>=3.0.10,<3.2.0", +- "numpy>=2,<2.4.0", ++ "numpy>=2", + "scipy>=1.8.0,<1.17.0", + ] +