-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Integration with Conda #48
Comments
Thanks! This is something I want to do but after 1.0 and in a slightly different way. My idea is to continue using |
Something that would be nice to automate is which package manager to use to get a package. Usually I will first try installing via |
Hatch has been rewritten from scratch and now supports environment plugins if someone wants to make one for conda, see https://ofek.dev/hatch/latest/config/environment/#type |
@ofek : Thanks again for a great tool. I allowed myself to copy your hatch-container plugin and make one for Conda: hatch-conda. The main use-case is for using matrix environments (running with multiple python version) on machines that have conda installed. |
Awesome, documented! 9e4811f |
First, this project is awesome and I'm loving it so far.
This is more of a feature request than an actual issue, but I was thinking it would be really cool if hatch could optionally integrate with conda. Perhaps one could switch between "conda mode" and "normal mode" where
hatch env
,hatch install
, etc. are just wrappers around the relevant conda commands.The main benefit from this is consolidation, instead of having to manually manage two sets of virtual environments (ones generated by conda and ones generated by hatch), everything could just be managed through hatch. The second benefit is that install will pull from the conda repos instead of PyPI repos, which tends to have nicely optimized data analysis packages.
I did try just configuring hatch to put its virtual environments under ~/miniconda/envs, but conda didn't pick them up for some reason (I think because conda expects some additional metadata and environment structure).
In the future, it might also be really neat to integrate with Anaconda Project. Apparently the API isn't stable yet though :(
If this is a pain, or otherwise a silly request, feel free to say so.
Thanks!
The text was updated successfully, but these errors were encountered: