Spaces:
Sleeping
Sleeping
deepsource-autofix[bot]
commited on
style: Format code with black
Browse files- pysr/julia_helpers.py +5 -2
pysr/julia_helpers.py
CHANGED
|
@@ -86,12 +86,15 @@ def install(julia_project=None, quiet=False, precompile=None): # pragma: no cov
|
|
| 86 |
except julia.tools.PyCallInstallError:
|
| 87 |
# Attempt to reset PyCall.jl's build:
|
| 88 |
subprocess.run(
|
| 89 |
-
[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
)
|
| 91 |
# Try installing again:
|
| 92 |
julia.install(quiet=quiet)
|
| 93 |
|
| 94 |
-
|
| 95 |
Main, init_log = init_julia(julia_project, quiet=quiet, return_aux=True)
|
| 96 |
io_arg = _get_io_arg(quiet)
|
| 97 |
|
|
|
|
| 86 |
except julia.tools.PyCallInstallError:
|
| 87 |
# Attempt to reset PyCall.jl's build:
|
| 88 |
subprocess.run(
|
| 89 |
+
[
|
| 90 |
+
"julia",
|
| 91 |
+
"-e",
|
| 92 |
+
f'ENV["PYTHON"] = "{sys.executable}"; import Pkg; Pkg.build("PyCall")',
|
| 93 |
+
],
|
| 94 |
)
|
| 95 |
# Try installing again:
|
| 96 |
julia.install(quiet=quiet)
|
| 97 |
|
|
|
|
| 98 |
Main, init_log = init_julia(julia_project, quiet=quiet, return_aux=True)
|
| 99 |
io_arg = _get_io_arg(quiet)
|
| 100 |
|