Skip to content

Commit 4675378

Browse files
authored
CI Use released versions of dependencies in Python 3.13 wheels as much as possible (scikit-learn#30269)
1 parent 3b22ec0 commit 4675378

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

build_tools/github/build_minimal_windows_image.sh

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@ function exec_inside_container() {
3030
}
3131

3232
exec_inside_container "python -m pip install $MNT_FOLDER/$WHEEL_NAME"
33-
34-
if [[ "$PYTHON_VERSION" == "313" ]]; then
35-
# TODO: remove when pandas has a release with python 3.13 wheels
36-
# First install numpy release
37-
exec_inside_container "python -m pip install numpy"
38-
# Then install pandas-dev
39-
exec_inside_container "python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas --only-binary :all:"
40-
fi
41-
4233
exec_inside_container "python -m pip install $CIBW_TEST_REQUIRES"
4334

4435
# Save container state to scikit-learn/minimal-windows image. On Windows the

build_tools/wheels/cibw_before_test.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ set -x
66
FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")"
77
PY_VERSION=$(python -c 'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")')
88

9+
# TODO: remove when scipy has a release with free-threaded wheels
910
if [[ $FREE_THREADED_BUILD == "True" ]]; then
10-
# TODO: remove when numpy, scipy and pandas have releases with free-threaded wheels
11-
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy scipy pandas --only-binary :all:
12-
13-
elif [[ "$PY_VERSION" == "313" ]]; then
14-
# TODO: remove when pandas has a release with python 3.13 wheels
15-
# First install numpy release
16-
python -m pip install numpy --only-binary :all:
17-
# Then install pandas-dev
18-
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas --only-binary :all:
11+
python -m pip install numpy pandas
12+
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy --only-binary :all:
1913
fi

0 commit comments

Comments
 (0)