From 5a3d405800b3846087115917190f953f0e0f0487 Mon Sep 17 00:00:00 2001 From: Alex Hirzel Date: Thu, 20 Apr 2023 18:33:13 -0400 Subject: [PATCH] Fix precompilation on latest master Use Revise.jl's "trick" that disables __init__() when precompiling. See: https://github.com/timholy/Revise.jl/pull/731 --- src/init.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/init.jl b/src/init.jl index af488f1..30d4994 100644 --- a/src/init.jl +++ b/src/init.jl @@ -144,6 +144,7 @@ gui = :default # initialization -- anything that depends on Python has to go here, # so that it occurs at runtime (while the rest of PythonPlot can be precompiled). function __init__() + ccall(:jl_generating_output, Cint, ()) == 1 && return nothing isjulia_display[] = isdisplayok() PythonCall.pycopy!(matplotlib, pyimport("matplotlib")) mvers = pyconvert(String, matplotlib.__version__)