[julia-users] Questions relating to packages and using/creating them

2014-11-10 Thread Dom Luna
I have some general questions about using packages.

1. Is there a way to create a workspace separate of $HOME/.julia? This 
would still have the same functionality when calling using in the REPL.
2. What's the best practice for packages with the same name? I don't have a 
problem related to this but I'm just curious how this is handled. I think 
via Pkg.add(...) there's only one definition of any package name, but with 
Pkg.clone(...) I could see package name collisions. Having all the packages 
under one directory doesn't seem scalable to me.

thanks


Re: [julia-users] Questions relating to packages and using/creating them

2014-11-10 Thread Isaiah Norton
1. see LOAD_PATH (http://julia.readthedocs.org/en/latest/manual/modules/)
2. this is not specifically supported, as far as I know. We could be fancy
and add a UUID to the package spec, or something like that, but I don't
think it is a very pressing concern right now. The simple options right now
are to manipulate LOAD_PATH to put the preferred package path(s) first (I
think this should work) or to manually `require` a specific path (which
won't work with `using`).

On Mon, Nov 10, 2014 at 9:25 PM, Dom Luna dluna...@gmail.com wrote:

 I have some general questions about using packages.

 1. Is there a way to create a workspace separate of $HOME/.julia? This
 would still have the same functionality when calling using in the REPL.
 2. What's the best practice for packages with the same name? I don't have
 a problem related to this but I'm just curious how this is handled. I think
 via Pkg.add(...) there's only one definition of any package name, but with
 Pkg.clone(...) I could see package name collisions. Having all the packages
 under one directory doesn't seem scalable to me.

 thanks