makepackage: Only add python-pmw as Recommends for deb for Python 2

There is no Pmw for Python 3 in the Ubuntu repositories
This commit is contained in:
rdb 2022-01-03 10:17:58 +01:00
parent 11d5a49d6f
commit fb4b154037

View File

@ -394,12 +394,10 @@ def MakeInstallerLinux(version, debversion=None, rpmversion=None, rpmrelease=1,
recommends = ReadFile("targetroot/debian/substvars_rec").replace("shlibs:Depends=", "").strip()
provides = "panda3d"
if python2_ver or python3_ver:
recommends += ", python-pmw"
if python2_ver:
depends += ", python%s" % (python2_ver)
recommends += ", python-wxversion"
recommends += ", python-pmw"
recommends += ", python-tk (>= %s)" % (python2_ver)
provides += ", python2-panda3d"