Precompile?

I am wondering if I can write a script that both adds and precompiles a set of packages. Alas

s= "CSV"
Pkg.add(s)
using s

does not work, because s is considered a name. is there a callable string method to the using command?

packages = ["CSV", "JSON"]
Pkg.add(packages)
Pkg.API.precompile()

The API should not be necessary but it is right now because of a forgotten import.

3 Likes

Is this forgotten import being fixed in 1.0.1? It doesn’t bother me to do it via Pkg.API but I want to know when I should clean up the code. Thanks