8000 MAINT force NumPy version for building scikit-learn for CPython 3.10 … · scikit-learn/scikit-learn@a71c535 · GitHub
[go: up one dir, main page]

Skip to content

Commit a71c535

Browse files
glemaitreogriselthomasjpfan
authored
MAINT force NumPy version for building scikit-learn for CPython 3.10 in Windows (#24742)
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
1 parent ff9344f commit a71c535

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ requires = [
99
# wheels on PyPI
1010
#
1111
# see: https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg
12-
"oldest-supported-numpy",
12+
"oldest-supported-numpy; python_version!='3.10' or platform_system!='Windows' or platform_python_implementation=='PyPy'",
13+
# For CPython 3.10 under Windows, SciPy requires NumPy 1.22.3 while the
14+
# oldest supported NumPy is defined as 1.21.6. We therefore need to force
15+
# it for this specific configuration. For details, see
16+
# https://github.com/scipy/scipy/blob/c58b608c83d30800aceee6a4dab5c3464cb1de7d/pyproject.toml#L38-L41
17+
"numpy==1.22.3; python_version=='3.10' and platform_system=='Windows' and platform_python_implementation != 'PyPy'",
1318

1419
"scipy>=1.3.2",
1520
]

0 commit comments

Comments
 (0)
0