From 903c4958ff5425011f040256d4465275c27a4651 Mon Sep 17 00:00:00 2001 From: Alex Hirzel Date: Fri, 21 Apr 2023 10:35:56 -0400 Subject: [PATCH] Fix precompilation on latest master Use Revise.jl's "trick" that disables __init__() when precompiling. See: timholy/Revise.jl#731 --- src/init.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/init.jl b/src/init.jl index c0eabaf..79d0813 100644 --- a/src/init.jl +++ b/src/init.jl @@ -169,6 +169,7 @@ gui = :default # initialization -- anything that depends on Python has to go here, # so that it occurs at runtime (while the rest of PyPlot can be precompiled). function __init__() + ccall(:jl_generating_output, Cint, ()) == 1 && return nothing isjulia_display[] = isdisplayok() copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib")) mvers = matplotlib.__version__