[PATCH RESEND 0/1] SB: More reliably recognize distribution

Michael South msouth at msouth.org
Mon Nov 13 22:19:55 UTC 2023


(Hopefully avoid line wrap this time.)

Fix #4966: SB doesn't recognize distros Python 3.8

If build host has Python >= 3.8 then Source builder could not very
reliably determine paths for OS utilities such as bzip2. Problem was that
"package.dist()", formerly used to determine the Linux distribution,
was removed in Python 3.8. Patch makes sb/linux.py now prefer to use the
"distro" package if it's available. "distro" is avail since python 3.6,
was also back-ported for 2.6.

Michael South (1):
  sb/linux.py: More reliably recognize distribution

 source-builder/sb/linux.py | 89 +++++++++++++++++++++++++-------------
 1 file changed, 59 insertions(+), 30 deletions(-)

-- 
2.41.0



More information about the devel mailing list