Avoiding duplicated environments #2193
-
I have what seems like a simple use case where I have a few different tools (pylint, pytest, mypy, etc) and I want to run them in parallel, so I've defined separate testenvs for each, but I'd like to just share one set of dependencies so it doesn't have to eat up a whole bunch of disk. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There isn't at the moment. The problem is the more tools you install in the same environment the more likely you'll run into version conflicts, so you lose isolation. Also, pytest needs to be installed in the same environment your package is. What you describe would need to either:
While both are possible, both are non-trivial to implement. So until someone volunteers to do it, it's unlikely to happen. |
Beta Was this translation helpful? Give feedback.
There isn't at the moment. The problem is the more tools you install in the same environment the more likely you'll run into version conflicts, so you lose isolation. Also, pytest needs to be installed in the same environment your package is.
What you describe would need to either:
While both are possible, both are non-trivial to implement. So until someone volunteers to do it, it's unlikely to happen.