I haven't tested this, but maybe something like:
req = split( open("$(Pkg.dir())/REQUIRE") do f ; readall(f);end , '\n' )
for pkgstr in req
On Wednesday, 17 February 2016 21:58:10 UTC+10, Oliver Schulz wrote:
>
> Is there an easy way to precompile all installed packages, e.g. after a
> `Pkg.update()`?
>
> This would come in handy when using a cluster of Julia machines (using an
> shared home dir on a network filesystem), to ensure precompilation is done
> before all machines load (and start precompiling) packages (e.g. from a
> shared home directory via a network filesystem).
>
> Also, as precompilation of many packages can take quite a bit of time, it
> would be nice to be able to choose when it happens (i.e. right now, instead
> later when I may want to give a tutorial or so ;-) ).
>
> Sorry if this is somewhere in the docs, I didn't find anything about it.
> I'd love to be able to just do `Pkg.update(precompile = true)` or so.
>
>
> Cheers,
>
> Oliver
>
>