Fix python version for Ubuntu 20.04

This commit is contained in:
Jordan Carlin 2024-07-23 00:16:27 -07:00
parent e4c38dd766
commit d096e2e4f8
No known key found for this signature in database

View File

@ -56,7 +56,7 @@ if [ "$FAMILY" == rhel ]; then
VERILATOR_PACKAGES+=(help2man perl clang ccache gperftools numactl mold) VERILATOR_PACKAGES+=(help2man perl clang ccache gperftools numactl mold)
BUILDROOT_PACKAGES+=(ncurses-base ncurses ncurses-libs ncurses-devel gcc-gfortran) BUILDROOT_PACKAGES+=(ncurses-base ncurses ncurses-libs ncurses-devel gcc-gfortran)
# Extra packages not availale in rhel8, nice for Verilator and needed for sail respectively # Extra packages not availale in rhel8, nice for Verilator and needed for sail respectively
if (( RHEL_VERSION == 9 )); then if (( RHEL_VERSION >= 9 )); then
VERILATOR_PACKAGES+=(perl-doc) VERILATOR_PACKAGES+=(perl-doc)
SAIL_PACKAGES=(z3) SAIL_PACKAGES=(z3)
fi fi
@ -66,11 +66,11 @@ elif [ "$FAMILY" == ubuntu ]; then
if (( UBUNTU_VERSION >= 24 )); then if (( UBUNTU_VERSION >= 24 )); then
PYTHON_VERSION=python3.12 PYTHON_VERSION=python3.12
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator
elif (( UBUNTU_VERSION == 22 )); then elif (( UBUNTU_VERSION >= 22 )); then
PYTHON_VERSION=python3.11 PYTHON_VERSION=python3.11
VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator VERILATOR_PACKAGES+=(mold) # Not availale in Ubuntu 20.04, nice for Verilator
elif (( UBUNTU_VERSION == 20 )); then elif (( UBUNTU_VERSION >= 20 )); then
PYTHON_VERSION=python3.11 PYTHON_VERSION=python3.9
OTHER_PACKAGES+=(gcc-10 g++-10 cpp-10) # Newer version of gcc needed for Verilator OTHER_PACKAGES+=(gcc-10 g++-10 cpp-10) # Newer version of gcc needed for Verilator
fi fi
PACKAGE_MANAGER="DEBIAN_FRONTEND=noninteractive apt-get" PACKAGE_MANAGER="DEBIAN_FRONTEND=noninteractive apt-get"