Add a workaround for stable 3005 and latest on CentOS Stream 8

This commit is contained in:
Gareth J. Greenaway 2023-03-15 17:41:00 -07:00 committed by Pedro Algarvio
parent b3c3753f42
commit ec4df56749

View file

@ -4643,6 +4643,13 @@ install_centos_stable() {
# shellcheck disable=SC2086
__yum_install_noinput ${__PACKAGES} || return 1
# Workaround for 3.11 broken on CentOS Stream 8.x
# Re-install Python 3.6
_py_version=$(${_PY_EXE} -c "import sys; print('{0}.{1}'.format(*sys.version_info))")
if [ "$DISTRO_MAJOR_VERSION" -eq 8 ] && [ "${_py_version}" = "3.11" ]; then
__yum_install_noinput python3
fi
return 0
}