Skip to content

Commit

Permalink
Use sys.executable to invoke pip, make it verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Jan 10, 2024
1 parent 62d09f4 commit 3f29ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybamm/install_odes.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ def main(arguments=None):
# see https://scikits-odes.readthedocs.io/en/latest/installation.html#id1
os.environ["SUNDIALS_INST"] = SUNDIALS_LIB_DIR
env = os.environ.copy()
subprocess.run(["pip", "install", "scikits.odes"], env=env, check=True)

logger.info("Installing scikits.odes via pip")
subprocess.run([f"{sys.executable}", "-m", "pip", "install", "scikits.odes", "--verbose"], env=env, check=True)

if __name__ == "__main__":
main(sys.argv[1:])

0 comments on commit 3f29ea4

Please sign in to comment.