Skip to content

Commit 9a7d10e

Browse files
authored
Fix precompilation on latest master (#26)
Use Revise.jl's "trick" that disables __init__() when precompiling. See: timholy/Revise.jl#731
1 parent 7a29424 commit 9a7d10e

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
@@ -144,6 +144,7 @@ gui = :default
144144
# initialization -- anything that depends on Python has to go here,
145145
# so that it occurs at runtime (while the rest of PythonPlot can be precompiled).
146146
function __init__()
147+
ccall(:jl_generating_output, Cint, ()) == 1 && return nothing
147148
isjulia_display[] = isdisplayok()
148149
PythonCall.pycopy!(matplotlib, pyimport("matplotlib"))
149150
mvers = pyconvert(String, matplotlib.__version__)

0 commit comments

Comments
 (0)