File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 11import shutil
2- from jill .install import install_julia
32
43# juliacall must be loaded after `_ensure_julia_installed()` is run,
54# so this import is in `load_julia_packages()`
@@ -12,6 +11,13 @@ def _find_julia():
1211def _ensure_julia_installed ():
1312 if not _find_julia ():
1413 print ("No Julia version found. Installing Julia." )
14+ try :
15+ from jill .install import install_julia
16+ except ImportError :
17+ raise RuntimeError (
18+ "Julia is not installed and the 'jill' package is not available. "
19+ "Please install Julia manually or install jill: pip install jill"
20+ )
1521 install_julia ()
1622 if not _find_julia ():
1723 raise RuntimeError (
@@ -61,6 +67,13 @@ def install(*, confirm=False):
6167 julia = _find_julia ()
6268 if not julia :
6369 print ("No Julia version found. Installing Julia." )
70+ try :
71+ from jill .install import install_julia
72+ except ImportError :
73+ raise RuntimeError (
74+ "Julia is not installed and the 'jill' package is not available. "
75+ "Please install Julia manually or install jill: pip install jill"
76+ )
6477 install_julia (confirm = confirm )
6578 julia = _find_julia ()
6679 if not julia :
You can’t perform that action at this time.
0 commit comments