I've inherited a python project, consisting of exactly 1 python file, that is designed to install and run on Linux. I don't know a ton about python and I know far less about Linux.
There are currently separate build processes for Ubuntu, Fedora, and Arch, which produce a DEB file, an RPM file, and a PKG.TAR.XZ file, respectively. Users then need to go through a different install process depending on their system.
One of my first tasks is to consolidate and simplify this process for our users. After investigation, it appears the Snap Store could be a good solution. The Snap Store appears to require setuptools.
Each of my build types, though, depends on different requirements. For example, DEB and RPM require python3-suds
, but ARCH needs python-suds
. ARCH and RPM want libappindicator-gtk3
, but DEB wants gir1.2-appindicator3-0.1
and gir1.2-gtk-3.0
instead.
I can't find an obvious way to include these conditional requirements in my setup.py install_requires
property. How would you go about accomplishing this? Or, am I completely on the wrong track?
As you answer, please keep in mind that I'm a novice! Thanks!