Good to know. Because the package is still in development though (and thus
not in metadata), it errors if not installed:
julia> Pkg.installed("Slicot")
ERROR: Slicot is not a package (not registered or installed)
I suppose I could wrap it in a try block, and once it's up to snuff and in
metadata this won't be a problem. I'm just looking for a good intermediate
solution so people can work on it until then.
On Sun, Jun 8, 2014 at 4:04 PM, Stefan Karpinski <[email protected]>
wrote:
> Pkg.installed("DataFrames") should be substantially faster since it just
> checks for a single package instead of checking all of them. This is yet
> another one of the growing number of issues caused by the incredible
> slowness of forking git so much in the package manager.
>
>
> On Sun, Jun 8, 2014 at 12:54 AM, James Crist <[email protected]> wrote:
>
>> I'm working on a package that has an optional dependency. As in it works
>> without it, but has additional functionality if it is installed. Because
>> the packages are still in development, they're not in Metadata right now.
>> So I'm checking with:
>>
>> if haskey(Pkg.installed(), "Pkgname")
>> import added_functionality
>> end
>>
>> This call takes 22 seconds on my machine. Is there a faster/better way to
>> go about doing this?
>>
>
>