CondaPkg.jl icon indicating copy to clipboard operation
CondaPkg.jl copied to clipboard

allow adding several packages at once using `CondaPkg.add`

Open schlichtanders opened this issue 2 years ago • 2 comments

This currently fails, which is quite disappointing image

Looking into the code, it is just not supported to pass a Vector of String. Passing a Vector of PkgSpec works, but this is very lowlevel and should not be needed.

schlichtanders avatar May 04 '23 19:05 schlichtanders

My workaround is now

CondaPkg.add(CondaPkg.PkgREPL.parse_pkg.(["numpy", "pandas", "matplotlib", "plotly"]))

It looks like this is not intended usage unfortunately.

Hence it would be really great if CondaPkg.add(["numpy", "pandas", "matplotlib", "plotly"]) just works

schlichtanders avatar May 04 '23 19:05 schlichtanders

I'll think about adding that.

In the meantime, you can do

CondaPkg.add.([...], resolve=false)
CondaPkg.resolve()

cjdoris avatar May 09 '23 06:05 cjdoris