We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0ce7ce commit 8758f74Copy full SHA for 8758f74
diffeqpy/__init__.py
@@ -1,5 +1,13 @@
1
import shutil
2
-from jill.install import install_julia
+
3
+try:
4
+ from jill.install import install_julia
5
+except ModuleNotFoundError:
6
+ def install_julia():
7
+ # install_julia() is only called if Julia is not already installed.
8
+ # Defining this dummy function allows diffeqpy to be used without Jill
9
+ # if Julia has already been installed.
10
+ raise RuntimeError("Could not install Julia as the Jill module was not found.")
11
12
# juliacall must be loaded after `_ensure_julia_installed()` is run,
13
# so this import is in `load_julia_packages()`
0 commit comments