Skip to content

Commit

Permalink
CI Use released versions of dependencies in Python 3.13 wheels as muc…
Browse files Browse the repository at this point in the history
…h as possible (#30269)
  • Loading branch information
lesteve authored Nov 12, 2024
1 parent 3b22ec0 commit 4675378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
9 changes: 0 additions & 9 deletions build_tools/github/build_minimal_windows_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ function exec_inside_container() {
}

exec_inside_container "python -m pip install $MNT_FOLDER/$WHEEL_NAME"

if [[ "$PYTHON_VERSION" == "313" ]]; then
# TODO: remove when pandas has a release with python 3.13 wheels
# First install numpy release
exec_inside_container "python -m pip install numpy"
# Then install pandas-dev
exec_inside_container "python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas --only-binary :all:"
fi

exec_inside_container "python -m pip install $CIBW_TEST_REQUIRES"

# Save container state to scikit-learn/minimal-windows image. On Windows the
Expand Down
12 changes: 3 additions & 9 deletions build_tools/wheels/cibw_before_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ set -x
FREE_THREADED_BUILD="$(python -c"import sysconfig; print(bool(sysconfig.get_config_var('Py_GIL_DISABLED')))")"
PY_VERSION=$(python -c 'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")')

# TODO: remove when scipy has a release with free-threaded wheels
if [[ $FREE_THREADED_BUILD == "True" ]]; then
# TODO: remove when numpy, scipy and pandas have releases with free-threaded wheels
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy scipy pandas --only-binary :all:

elif [[ "$PY_VERSION" == "313" ]]; then
# TODO: remove when pandas has a release with python 3.13 wheels
# First install numpy release
python -m pip install numpy --only-binary :all:
# Then install pandas-dev
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple pandas --only-binary :all:
python -m pip install numpy pandas
python -m pip install --pre --extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy --only-binary :all:
fi

0 comments on commit 4675378

Please sign in to comment.