Jul-01-2024, 04:52 PM
Hi. I am maintaining several Python packages and for that purpose I live in a world of Python virtual environments with "pip" as an installer.
However, system admins out there live in a world of OS-level packages and their package managers, including for Python packages (aka "distributions").
Every open source Python project I know of specifies dependencies to other Python packages in terms of requirements.txt files, i.e. for the world where "pip" is the installer. That makes it hard for system admins to figure out the corresponding OS-level packages.
Has anyone come across a tool that identifies and installs the corresponding OS-level Python packages for those Python packages specified in a requirements.txt file, depending on the OS platform and OS package manager? (e.g. brew for macOS, chocolatey for Windows, yum/dnf/apt/yast/etc. for Linux).
I know bindep, but (1) it only checks and does not install and (2) it has its own dependency format which is not as capable as the requirements.txt format.
Andy
However, system admins out there live in a world of OS-level packages and their package managers, including for Python packages (aka "distributions").
Every open source Python project I know of specifies dependencies to other Python packages in terms of requirements.txt files, i.e. for the world where "pip" is the installer. That makes it hard for system admins to figure out the corresponding OS-level packages.
Has anyone come across a tool that identifies and installs the corresponding OS-level Python packages for those Python packages specified in a requirements.txt file, depending on the OS platform and OS package manager? (e.g. brew for macOS, chocolatey for Windows, yum/dnf/apt/yast/etc. for Linux).
I know bindep, but (1) it only checks and does not install and (2) it has its own dependency format which is not as capable as the requirements.txt format.
Andy