Skip to content

Commit 97464a7

Browse files
committed
Improve install_controlplots
1 parent 026676d commit 97464a7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bin/install_controlplots

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ println("matplotlib and pyqt installed in CondaPkg environment.")
114114
}
115115

116116
_verify_controlplots() {
117+
local _cpkg_backend="${1:-}"
117118
echo "Verifying ControlPlots can be loaded..."
118119
if env -u LD_PRELOAD -u LD_LIBRARY_PATH \
120+
${_cpkg_backend:+JULIA_CONDAPKG_BACKEND="$_cpkg_backend"} \
119121
julia --project=examples -e '
120122
using ControlPlots
121123
println("ControlPlots loaded successfully.")
@@ -242,7 +244,7 @@ if [[ "$_backend" == "system" ]]; then
242244
echo "Written to $_prefs_file."
243245

244246
_set_mplbackend_qtagg
245-
_verify_controlplots
247+
_verify_controlplots "Null"
246248

247249
echo ""
248250
echo "Done. ControlPlots will use the system Python (PythonCall) matplotlib with the Qt (qtagg) backend."

0 commit comments

Comments
 (0)