Skip to content

Commit 28fca3f

Browse files
cakedev0lesteve
andauthored
BLD Pin cython<3.2.6 to avoid Cython __annotate__ pickling bug (scikit-learn#34533)
Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
1 parent ff12a43 commit 28fca3f

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ tracker = "https://github.com/scikit-learn/scikit-learn/issues"
4444
"release notes" = "https://scikit-learn.org/stable/whats_new"
4545

4646
[project.optional-dependencies]
47-
build = ["numpy>=1.24.1", "scipy>=1.10.0", "cython>=3.1.2", "meson-python>=0.17.1"]
47+
# TODO: once https://github.com/cython/cython/issues/7846 is fixed and in a Cython release
48+
# change to "cython>[fixed-version]" or "cython>=3.1.2,!=3.2.6,!=3.2.7,..."
49+
build = ["numpy>=1.24.1", "scipy>=1.10.0", "cython>=3.1.2,<3.2.6", "meson-python>=0.17.1"]
4850
install = ["numpy>=1.24.1", "scipy>=1.10.0", "joblib>=1.4.0", "narwhals>=2.0.1", "threadpoolctl>=3.5.0"]
4951
benchmark = ["matplotlib>=3.6.1", "pandas>=1.5.0", "memory_profiler>=0.57.0"]
5052
docs = [
@@ -100,7 +102,9 @@ build-backend = "mesonpy"
100102
# Minimum requirements for the build system to execute.
101103
requires = [
102104
"meson-python>=0.17.1",
103-
"cython>=3.1.2",
105+
# TODO: once https://github.com/cython/cython/issues/7846 is fixed and in a Cython release
106+
# change to "cython>[fixed-version]" or "cython>=3.1.2,!=3.2.6,!=3.2.7,..."
107+
"cython>=3.1.2,<3.2.6",
104108
"numpy>=2",
105109
"scipy>=1.10.0",
106110
]

0 commit comments

Comments
 (0)