Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove custom default backends #4870

Merged
merged 11 commits into from
Jan 23, 2024
6 changes: 5 additions & 1 deletion src/init.jl
BeastyBlacksmith marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,14 @@ backend()
include(_path(backend_name()))

# COV_EXCL_START
if VERSION >= v"1.10" && backend_name() !== :gr
else
@setup_workload begin
@debug backend_package_name()
n = length(_examples)
imports = sizehint!(Expr[], n)
examples = sizehint!(Expr[], 10n)
scratch_dir = mktempdir()
for i in setdiff(1:n, _backend_skips[backend_name()], _animation_examples)
_examples[i].external && continue
(imp = _examples[i].imports) === nothing || push!(imports, imp)
Expand All @@ -99,7 +102,7 @@ include(_path(backend_name()))
$func() = begin # evaluate each example in a local scope
$(_examples[i].exprs)
$i == 1 || return # only for one example
fn = tempname()
fn = joinpath(scratch_dir, tempname())
pl = current()
show(devnull, pl)
# FIXME: pgfplotsx requires bug
Expand Down Expand Up @@ -128,4 +131,5 @@ include(_path(backend_name()))
end
BeastyBlacksmith marked this conversation as resolved.
Show resolved Hide resolved
CURRENT_PLOT.nullableplot = nothing
end
BeastyBlacksmith marked this conversation as resolved.
Show resolved Hide resolved
end
# COV_EXCL_STOP
Loading