我想修改自己项目使用的一个依赖。这个依赖是 kivy(https://kivy.org/),它有一些可选依赖,并通过 cython 编译部分原生模块,我的项目需要特定的组合,实际上是空集,而 kivy 自己的测试需要 [dev,full]。
两个项目需要不同配置,所以不能共用 venv,但两边都需要以 editable 模式安装 kivy,才能方便地在两个项目中测试改动。
顺便说一下,我觉得逐步测试多个 python 版本,并分别使用 editable 模式的 venv,也会遇到同样的限制。
有人知道怎样让这种配置工作吗?
从英语翻译·查看原文I'd like to make changes to a dependency used by one of my projects. This dependency (kivy (https://kivy.org/)) offers several optional dependencies and compiles some native modules using cython, with my project needing a particular selection (in fact none), while kivy's own tests need [dev,full].
The projects need different configurations, so sharing a venv between them won't work, but each still needs kivy installed in editable mode so that I can easily test a change in both projects.
As an aside, I think the same constraints apply when gradually testing several python versions, using separate editable-mode venvs for for that purpose.
Does anyone know how to make this arrangement work?