Skip to content

Commit

Permalink
Fix precompilation on latest master (#26)
Browse files Browse the repository at this point in the history
Use Revise.jl's "trick" that disables __init__() when precompiling.

See: timholy/Revise.jl#731
  • Loading branch information
alhirzel authored Apr 21, 2023
1 parent 7a29424 commit 9a7d10e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit 9a7d10e

Please sign in to comment.