shared package directory?

189 views
Skip to first unread message

Douglas Bates

unread,
Jul 23, 2013, 1:20:43 PM7/23/13
to juli...@googlegroups.com
At present the default location for .julia is in the user's home directory.  On shared systems this could result in many copies of potentially large packages.  (I am partially responsible for the size of the RDatasets package, which is one of the larger ones, weighing in at 42M.)  This may not be that much of an issue with storage availability today but is there a reasonable mechanism for sharing a package directory?  We could always fall back on symbolic links I suppose but that may result in complexities when updating.

Stefan Karpinski

unread,
Jul 23, 2013, 2:27:56 PM7/23/13
to Julia Dev
You can install packages in the system directories that are in LOAD_PATH by default, e.g. on my system:

 "/Users/stefan/projects/julia/usr/local/share/julia/site/v0.2"
 "/Users/stefan/projects/julia/usr/share/julia/site/v0.2"

Tim Holy

unread,
Jul 23, 2013, 2:43:34 PM7/23/13
to juli...@googlegroups.com
On Tuesday, July 23, 2013 10:20:43 AM Douglas Bates wrote:
> is there a
> reasonable mechanism for sharing a package directory?

We do this in my lab.

.bashrc:
export JULIAFUNCDIR=~/julia/juliafunc # locally-written code
export JULIA_PKGDIR=/usr/local/julia/julia-packages

Everybody's .juliarc.jl:
push!(LOAD_PATH, ENV["JULIAFUNCDIR"])
using SOME_PACKAGE_I_ALWAYS_USE

--Tim

Reply all
Reply to author
Forward
0 new messages