Skip to content

[release/2.4] Conditionalize versioning for conda #2045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: release/2.4
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions .ci/docker/common/install_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,19 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
else
CONDA_COMMON_DEPS="astunparse pyyaml mkl=2021.4.0 mkl-include=2021.4.0 setuptools"

if [ "$ANACONDA_PYTHON_VERSION" = "3.11" ] || [ "$ANACONDA_PYTHON_VERSION" = "3.12" ]; then
conda_install numpy=1.26.0 ${CONDA_COMMON_DEPS}
else
conda_install numpy=1.21.2 ${CONDA_COMMON_DEPS}
fi
case "$ANACONDA_PYTHON_VERSION" in
3.11|3.12)
NUMPY_SPEC="numpy=1.26.*" # allowed upper‑bound in PyTorch
;;
3.10)
NUMPY_SPEC="numpy>=1.24,<1.27" # first series with Py3.10 wheels
;;
*)
NUMPY_SPEC="numpy=1.21.2" # Py3.7–3.9 builds
;;
esac
conda_install ${NUMPY_SPEC} ${CONDA_COMMON_DEPS}

fi

# Install llvm-8 as it is required to compile llvmlite-0.30.0 from source
Expand Down