-
In certain cases, we may want to maintain requirements for different environments. For example, different Python versions, different operation system (Linux/Mac/Windows), different architecture (x86/arm64), or even different third-party packages (PyTorch 1.X, PyTorch 2.X). My current solution is to maintain a list of minimal requirements with different constraints. The idea comes from airflow. It would be great if we can make it with more powerful dependency management tools, but seems pipenv, poetry and pdm only support kinds of hash lock to restrict the environment rather than support multiple environments simultaneously. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can use multiple lockfiles using |
Beta Was this translation helpful? Give feedback.
You can use multiple lockfiles using
--lockfile
. You can also make the lockfile less generic: https://pdm.fming.dev/latest/usage/dependency/#cross-platform-lockfile.