Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
cc9adea
1
Parent(s):
bd2462c
Only check PyCall at init, not before install
Browse files- pysr/julia_helpers.py +2 -3
pysr/julia_helpers.py
CHANGED
@@ -25,9 +25,6 @@ def load_juliainfo():
|
|
25 |
f"Julia is not installed in your PATH. Please install Julia and add it to your PATH.\n\nCurrent PATH: {env_path}",
|
26 |
)
|
27 |
|
28 |
-
if not juliainfo.is_pycall_built():
|
29 |
-
raise ImportError(import_error_string())
|
30 |
-
|
31 |
return juliainfo
|
32 |
|
33 |
|
@@ -144,6 +141,8 @@ def init_julia(julia_project=None):
|
|
144 |
check_for_conflicting_libraries()
|
145 |
|
146 |
juliainfo = load_juliainfo()
|
|
|
|
|
147 |
julia_project, is_shared = _get_julia_project(julia_project)
|
148 |
_set_julia_project_env(julia_project, is_shared)
|
149 |
|
|
|
25 |
f"Julia is not installed in your PATH. Please install Julia and add it to your PATH.\n\nCurrent PATH: {env_path}",
|
26 |
)
|
27 |
|
|
|
|
|
|
|
28 |
return juliainfo
|
29 |
|
30 |
|
|
|
141 |
check_for_conflicting_libraries()
|
142 |
|
143 |
juliainfo = load_juliainfo()
|
144 |
+
if not juliainfo.is_pycall_built():
|
145 |
+
raise ImportError(import_error_string())
|
146 |
julia_project, is_shared = _get_julia_project(julia_project)
|
147 |
_set_julia_project_env(julia_project, is_shared)
|
148 |
|