question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Integration with Conda

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
OldGrumpyVikingcommented, Aug 12, 2022

@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.

1reaction
ofekcommented, Sep 30, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Conda — conda documentation
Conda as a package manager helps you find and install packages. ... Conda can be combined with continuous integration systems such as Travis...
Read more >
Using IDEs - Anaconda Documentation
Data science is a team sport, so we have built the Anaconda platform to be language-agnostic as well as extensible. You can use...
Read more >
PyCharm - Configure a conda virtual environment - JetBrains
PyCharm supports creating virtual environments for Python with Conda. The following procedure applies to all supported operating systems.
Read more >
How to Manage Python Dependencies with Conda - ActiveState
Conda is a package, dependency, and environment management tool for Anaconda Python, which is widely used in the scientific community, ...
Read more >
Integrating Conda Pack with Data Flow - Oracle Help Center
Integrating Conda Pack with Data Flow · Log into a docker container with the image oraclelinux:7-slim , or use an Oracle Linux 7...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found