Is there a way to install packages system wide alongside those added by users without duplication?
I’d really like to be able to install (and precompile) a selection of commonly used packages in a system wide directory, then have users add only the packages they need without duplication. Whatever I’ve tried so far,
Pkg.add (run by the user), resolves to a large tree of dependencies, most or all of which are already installed (system wide).
When installing the system packages, I’m setting JULIA_PKGDIR to a system path, then running the Pkg commands. When a user logs in I’m not setting JULIA_PKGDIR so
Pkg.dir() resolves to e.g.
/home/user/.julia/v0.5" and Pkg.installed() is empty. Setting LOAD_CACHE_PATH allows "using " to work, but running Pkg.add will create a new METADATA file in Pkg.dir() and then start rebuilding everything. I would really like julia to build only the things which aren’t installed in the system wide directory.