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

conda-build and conda skeleton #110

Open
ParadaCarleton opened this issue Oct 10, 2023 · 3 comments
Open

conda-build and conda skeleton #110

ParadaCarleton opened this issue Oct 10, 2023 · 3 comments

Comments

@ParadaCarleton
Copy link

conda-build includes the conda skeleton command, which lets you build and install conda packages from PyPI and CRAN. It'd be great to have an easy way to do this from inside the package, or even to automatically have conda add X search for X in PyPI and CRAN, then build the package with conda skeleton if it can't be found in other channels.

@cjdoris
Copy link
Collaborator

cjdoris commented Oct 17, 2023

Nice idea but....

This would be really non-trivial to implement - for example the name of a package in PyPI can be different from its name in Conda, so getting dependencies matched up is hard. It also requires you to know exactly which version of the PyPI package you need - which you won't generally know.

If conda itself ever supports an option to directly specify PyPI dependencies then I'll consider supporting that, but conda skeleton as it is is not for automated use.

CondaPkg does allow you to specify packages to install with pip. Is that not enough?

@ParadaCarleton
Copy link
Author

CondaPkg does allow you to specify packages to install with pip. Is that not enough?

Unfortunately not, because pip is very bad at avoiding conflicting versions :/

This would be really non-trivial to implement - for example the name of a package in PyPI can be different from its name in Conda, so getting dependencies matched up is hard.

I think trying and failing to find a PyPI message (and returning with an error explaining the package isn't in conda) is fine.

That being said, just having a way to access conda skeleton from inside the Julia REPL would probably be enough for me.

@cjdoris
Copy link
Collaborator

cjdoris commented Nov 7, 2023

FYI you can now do

pkg> conda run conda ...

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