Skip to content

Commit 091b0b5

Browse files
committed
Only require Jill if Julia is not already installed
1 parent b0ce7ce commit 091b0b5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

diffeqpy/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import shutil
2-
from jill.install import install_julia
2+
3+
try:
4+
from jill.install import install_julia
5+
except ModuleNotFoundError:
6+
def install_julia():
7+
raise RuntimeError("Could not install Julia as the Jill module was not found.")
38

49
# juliacall must be loaded after `_ensure_julia_installed()` is run,
510
# so this import is in `load_julia_packages()`

0 commit comments

Comments
 (0)