Integration with Conda
See original GitHub issueFirst, 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!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
@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. Resolving packages from the conda | conda-forge index might be something that will be added later.
Thanks!
This is something I want to do but after 1.0 and in a slightly different way.
My idea is to continue using
virtualenv
for envs but package management would have a --conda flag that would pull directly from their repos.