How can I prevent automatic precompilation after adding a package in Julia 1.6?
To disable automatic precompilation in Julia 1.6 and later, set
ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0
Source: 12. API Reference · Pkg.jl
6 Likes
I’m trying to avoid precompilation of Plots when generating the documentation of a package. I only need Plots to trigger the loading of an extension such that the doc strings of the extension get loaded and shown in the docs.
I’ve tried adding ENV["JULIA_PKG_PRECOMPILE_AUTO"]=0 to the top of the make.jl file, but that didn’t do the trick. Then I used it in the section where I’m running using LiveServer; servedocs(), and still got everything precompiling.
Any idea on how to disable precompilation in that context? If specifically for a specific package even better.