Skip to content

Commit 05172f0

Browse files
authored
Fix precompilation on latest master (#565)
Use Revise.jl's "trick" that disables __init__() when precompiling. See: timholy/Revise.jl#731
1 parent 23059fb commit 05172f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/init.jl

+1
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ gui = :default
169169
# initialization -- anything that depends on Python has to go here,
170170
# so that it occurs at runtime (while the rest of PyPlot can be precompiled).
171171
function __init__()
172+
ccall(:jl_generating_output, Cint, ()) == 1 && return nothing
172173
isjulia_display[] = isdisplayok()
173174
copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib"))
174175
mvers = matplotlib.__version__

0 commit comments

Comments
 (0)