Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
49ecfff
1
Parent(s):
e881315
Include warning for static python.
Browse files- pysr/julia_helpers.py +3 -0
pysr/julia_helpers.py
CHANGED
@@ -194,6 +194,9 @@ def init_julia(julia_project=None, quiet=False, julia_kwargs=None, return_aux=Fa
|
|
194 |
# Static python binary, so we turn off pre-compiled modules.
|
195 |
julia_kwargs = {**julia_kwargs, "compiled_modules": False}
|
196 |
Julia(**julia_kwargs)
|
|
|
|
|
|
|
197 |
|
198 |
using_compiled_modules = (not "compiled_modules" in julia_kwargs) or julia_kwargs[
|
199 |
"compiled_modules"
|
|
|
194 |
# Static python binary, so we turn off pre-compiled modules.
|
195 |
julia_kwargs = {**julia_kwargs, "compiled_modules": False}
|
196 |
Julia(**julia_kwargs)
|
197 |
+
warnings.warn(
|
198 |
+
"Your system's Python library is static (e.g., conda), so precompilation will be turned off. For a dynamic library, try `pyenv`."
|
199 |
+
)
|
200 |
|
201 |
using_compiled_modules = (not "compiled_modules" in julia_kwargs) or julia_kwargs[
|
202 |
"compiled_modules"
|