Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow adding several packages at once using CondaPkg.add #89

Open
schlichtanders opened this issue May 4, 2023 · 2 comments
Open

allow adding several packages at once using CondaPkg.add #89

schlichtanders opened this issue May 4, 2023 · 2 comments

Comments

@schlichtanders
Copy link

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
Copy link
Author

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

@cjdoris
Copy link
Collaborator

cjdoris commented May 9, 2023

I'll think about adding that.

In the meantime, you can do

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants