-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Extend pybamm_install_odes
to include support for macOS systems
#3404
Comments
Thanks for opening this @agriyakhetarpal. |
Installation logs
From scikits_odes_setup.log
Looks like the output was truncated because I already have a SUNDIALS installation from |
It should also be fine to build with KLU and reuse an existing SUNDIALS installation like it did for my case, because |
Sure, happy to pick it up. |
Idea: |
The
pybamm/install_odes.py
script, i.e., thepybamm_install_odes
entry point currently installs the build-time requirements (SUNDIALS), sets relevant environment variables, andscikits.odes
for use by the optional solver. Considering that users can also usescikits.odes
on macOS by pointing to a SUNDIALS installation using theSUNDIALS_INST
environment variable, we can add suitable modifications to this script to make it work on all UNIX-based systems (macOS and Linux).Some reference can be used from the
install_KLU_Sundials.py
which currently works for both macOS and Linux. However, a difference to be noted is thatinstall_odes.py
does not compile the KLU module, whereas the aforementioned script does.This will help simplify the installation of
scikits.odes
and enable doing so without the usage of anox
session, and can then be tested in CI.The text was updated successfully, but these errors were encountered: