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

Support for uv Backend? #149

Closed
andrew-saydjari opened this issue Sep 26, 2024 · 4 comments
Closed

Support for uv Backend? #149

andrew-saydjari opened this issue Sep 26, 2024 · 4 comments

Comments

@andrew-saydjari
Copy link

I have been a loyal CondaPkg.jl user for a while, and I love that I can use MicroMamba (and pip as needed) for the package resolution. I have recently gotten a lot of recommendations for https://github.com/astral-sh/uv to do the package resolution. Are there any thoughts/plans on adding this as a package resolution manager here (or elsewhere)?

@cjdoris
Copy link
Collaborator

cjdoris commented Sep 26, 2024

It's already optionally supported - if you have uv as a dependency in any CondaPkg.toml file then it will be used instead of pip to install any pip dependencies.

I'm considering making it always use uv, with an option to choose pip instead.

@andrew-saydjari
Copy link
Author

Amazing! Happy to close the issue or leave it open as a placeholder to get this fact into the documentation (which I don't think is there, unless I missed it).

@cjdoris
Copy link
Collaborator

cjdoris commented Oct 1, 2024

You can now control this behaviour with the pip_backend preference - see the readme. It is uv by default now. Will appear in the next release.

@cjdoris cjdoris closed this as completed Oct 1, 2024
@andrew-saydjari
Copy link
Author

I just want to note that in during the runtest in this CI, test, the install from the CondaPkg.jl proceeds via micromamba. Is this unavoidable since we need to do at least one mamba/conda run to get pip/uv? I also will note that it downloaded pip rather than uv, which confused me based on the above discussion, but I am probably missing something in my CI set up?

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