Skip to content

Commit

Permalink
tweak deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 24, 2024
1 parent ae1f3d1 commit bfb2db6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/SlimPlotting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ function tryimport(pkg::String)
pyi = try
PythonPlot.pyimport(pkg)
catch e
pyexe = PythonPlot.PythonCall.python_executable_path()
run(Cmd(`$(pyexe) -m pip install --user $(pkg)`))
PythonPlot.PythonCall.pyimport(pkg)
if get(ENV, "JULIA_CONDAPKG_BACKEND", "conda") == "Null"
pyexe = PythonPlot.python_executable_path()
run(Cmd(`$(pyexe) -m pip install --user $(pkg)`))
else
PythonPlot.CondaPkg.add_pip(pkg)
end
PythonPlot.pyimport(pkg)
end
return pyi
end
Expand Down

0 comments on commit bfb2db6

Please sign in to comment.