I tried modifying LOAD_CACHE_PATH, but it is a non-exported variable of Base. Even after importing it, I am not allowed to modify it. This capability would be useful to me since I've written some Julia command-line utilities to called by numerous non-Julia-proficient users. These utilities make use of standard packages (such as PyPlot) that require precompilation, and it is undesirable that each new user must go through the precompilation delay on their first use of the utility. It would be much nicer if LOAD_CACHE_PATH could be pointed to some common directory that is readable and writable by everyone so that the modules would only have to be precompiled once upon first use. Is this a reasonable topic for filing as a Julia issue?
On Wednesday, September 30, 2015 at 12:09:14 PM UTC-7, Steven G. Johnson wrote: > > Just install the packages into some directory, and add that directory to > the LOAD_PATH. You can also precompile them and put the .ji files in some > directory that you add to the > > LOAD_CACHE_PATH path. That way your users will get a fixed set of > packages at a known version, won't need Internet access, and won't need to > precompile. >
