I'd be in favor of adding the feature to Julia.

 -- John

On Jul 25, 2014, at 6:38 AM, Iain Dunning <[email protected]> wrote:

> Someone could add the feature to Julia itself, and I guess its in there sorta 
> in that it needs that knowledge to resolve dependencies, but I think making 
> "nice" output probably is best in a package.
> 
> As for why PackageEvaluator isn't in METADATA... its not really a package, so 
> much as a collection of scripts. But it is becoming more package-like. Maybe 
> I'll do something about that one day.
> 
> On Thursday, July 24, 2014 4:13:01 PM UTC-4, Sam L wrote:
> There doesn't appear to be a way to get the dependencies of a package from 
> the API exposed in the Pkg module. I looked at the internals of the Pkg 
> modules but didn't become enlightened. Specifically, I want to be able to get 
> a list of dependencies for a given package and version.  It would also be 
> helpful to know which versions of a dependent package can be used, but that 
> is not crucial.
> 
> I found MetaTools.get_pkg in PackageEvaluator.jl which could do what I 
> needed. However it's probably not the best idea for me to use an undocumented 
> feature in a package that (surprisingly!) isn't in METADATA :).
> 
> Anyone have any suggestions on how to do this relatively safely?
> 
> Thanks!
> Sam

Reply via email to