···325325 break
326326 fi
327327328328- PYTHON_PACKAGE=python2
329329- if test "$jobname" = linux-gcc
328328+ # Python 2 is end of life, and Ubuntu 23.04 and newer don't actually
329329+ # have it anymore. We thus only test with Python 2 on older LTS
330330+ # releases.
331331+ if "$distro" = "ubuntu-20.04"
330332 then
333333+ PYTHON_PACKAGE=python2
334334+ else
331335 PYTHON_PACKAGE=python3
332336 fi
333337 MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=/usr/bin/$PYTHON_PACKAGE"