Skip to content

Commit

Permalink
pybamm-team#3443 Add various versions for jax and jaxlib
Browse files Browse the repository at this point in the history
1. Add support for Python 3.11 on aarch64 containers
2. Keep Python 3.8 support on older version
3. Add Python 3.9–3.11 support on newer version (same as the one for point 1)
4. Add support for CPU-only Windows installation
5. Pin all versions so as to not break anything.
  • Loading branch information
agriyakhetarpal authored and js1tr3 committed Aug 12, 2024
1 parent d96723a commit 5fdfbf3
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,26 @@ def compile_KLU():
"pandas": [
"pandas>=1.5.0",
],
# Note: jax and jaxlib must be pinned to a specific version
# to avoid upstream breaking changes.
"jax": [
"jax==0.4.8",
"jaxlib==0.4.7",
# 0.4.18 provides support for Jax on aarch64 containers
# via the PyBaMM images on Docker Hub which come with
# Python 3.11 installed.
# It also provides support for CPU-only Jax on Windows.
"jax==0.4.18; python_version >= '3.9'",
"jaxlib==0.4.18; python_version >= '3.9'",
# Jax 0.4.13 was the last version to support Python 3.8.
# Support for CPU-only Windows was added in 0.4.13, so
# this version supports Windows too.
"jax==0.4.13; python_version < '3.9'",
"jaxlib==0.4.13; python_version < '3.9'",
],
"odes": ["scikits.odes"],
"all": [
"autograd>=1.6.2",
"scikit-fem>=8.1.0",
"pybamm[examples,plot,cite,latexify,bpx,tqdm,pandas]"
"pybamm[examples,plot,cite,latexify,bpx,tqdm,pandas]",
],
},
entry_points={
Expand Down

0 comments on commit 5fdfbf3

Please sign in to comment.