Files
macports-ports/python/py-scikit-learn/files/patch-version-caps-pyproject.toml-1.7.2.diff
Paul GuyotandRenee Otten b27520ce9a py-scikit-learn: fix py310 build with version-specific patch
The existing patch targets 1.8.0 but py310 uses 1.7.2 which has
different version caps. Add a separate patch for 1.7.2 and apply
patches conditionally based on python version.

Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2026-03-21 21:01:55 -04:00

17 lines
458 B
Diff

--- pyproject.toml.orig 2024-01-01 00:00:00.000000000 +0000
+++ pyproject.toml 2024-01-01 00:00:00.000000000 +0000
@@ -1,9 +1,9 @@
[build-system]
build-backend = "mesonpy"
# Minimum requirements for the build system to execute.
requires = [
- "meson-python>=0.16.0,<0.19.0",
- "Cython>=3.0.10,<3.2.0",
- "numpy>=2,<2.4.0",
- "scipy>=1.8.0,<1.17.0",
+ "meson-python>=0.16.0",
+ "Cython>=3.0.10",
+ "numpy>=2",
+ "scipy>=1.8.0",
]