TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

1 点作者 mguijarr将近 3 年前
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

暂无评论

暂无评论