TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Need advice on how to deal with setup.py, Conda requirements and recipe

1 pointsby mguijarrover 2 years ago
Hi,<p>I work on a Python project, with non-Python dependencies. For example, the project uses redis ; a full installation means installing redis server + redis-py.<p>So, we are using Conda and are happy with it. We have a requirements.txt file with the dependencies. When making the Conda package, dependencies have to be copied to meta.yaml... I would like to avoid this duplication.<p>I can access yaml or setup.py from conda-build, I was thinking to replace requirements.txt with environment.yml ?<p>Some people like using setup.py - and also, for development it is quite convenient to rely on `pip install -e .` in an already existing Conda env. Finally, maybe it is better to have dependencies only in setup.py, then (`install_requires`) ?<p>But, how to deal with non-Python dependencies like Redis server ?<p>I was thinking of using Poetry... Not sure it helps.<p>I am a bit confused ! Any advice from the community ? :)<p>Thanks in advance

no comments

no comments