Skip to content
Closed
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
10 changes: 9 additions & 1 deletion diffeqpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import shutil
from jill.install import install_julia

try:
from jill.install import install_julia
except ModuleNotFoundError:
def install_julia():
# install_julia() is only called if Julia is not already installed.
# Defining this dummy function allows diffeqpy to be used without Jill
# if Julia has already been installed.
raise RuntimeError("Could not install Julia as the Jill module was not found.")

# juliacall must be loaded after `_ensure_julia_installed()` is run,
# so this import is in `load_julia_packages()`
Expand Down
Loading