Skip to content

Commit

Permalink
#3808 ensure pip never uses scikits.odes wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Feb 7, 2024
1 parent 9eb95e8 commit a900fff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
PYBAMM_ENV = {
"SUNDIALS_INST": f"{homedir}/.local",
"LD_LIBRARY_PATH": f"{homedir}/.local/lib",
"PIP_NO_BINARY": "scikits.odes",
}
VENV_DIR = Path("./venv").resolve()

Expand Down Expand Up @@ -68,6 +69,7 @@ def run_coverage(session):
if sys.version_info > (3, 12):
session.install("-e", ".[all,jax]", silent=False)
else:
session.run_always(sys.executable, "-m", "pip", "cache", "remove", "scikits.odes", external=True)
session.install("-e", ".[all,jax,odes]", silent=False)
else:
if sys.version_info < (3, 9):
Expand All @@ -91,6 +93,7 @@ def run_integration(session):
if sys.version_info > (3, 12):
session.install("-e", ".[all,jax]", silent=False)
else:
session.run_always(sys.executable, "-m", "pip", "cache", "remove", "scikits.odes", external=True)
session.install("-e", ".[all,jax,odes]", silent=False)
else:
if sys.version_info < (3, 9):
Expand Down Expand Up @@ -123,6 +126,7 @@ def run_unit(session):
if sys.version_info > (3, 12):
session.install("-e", ".[all,jax]", silent=False)
else:
session.run_always(sys.executable, "-m", "pip", "cache", "remove", "scikits.odes", external=True)
session.install("-e", ".[all,jax,odes]", silent=False)
else:
if sys.version_info < (3, 9):
Expand Down Expand Up @@ -180,6 +184,7 @@ def set_dev(session):
external=True,
)
else:
session.run_always(sys.executable, "-m", "pip", "cache", "remove", "scikits.odes", external=True)
session.run(
python,
"-m",
Expand Down Expand Up @@ -224,6 +229,7 @@ def run_tests(session):
if sys.version_info > (3, 12):
session.install("-e", ".[all,jax]", silent=False)
else:
session.run_always(sys.executable, "-m", "pip", "cache", "remove", "scikits.odes", external=True)
session.install("-e", ".[all,jax,odes]", silent=False)
else:
if sys.version_info < (3, 9):
Expand Down

0 comments on commit a900fff

Please sign in to comment.