Skip to content

Commit

Permalink
etc: Add support for Ubuntu 24.04 dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Eryk Szpotanski <eszpotanski@antmicro.com>
  • Loading branch information
eszpotanski committed Aug 14, 2024
1 parent 665743f commit 33379d0
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,28 +295,32 @@ _installUbuntuPackages() {
zlib1g-dev \
ccache \

if _versionCompare $1 -ge 22.10; then
apt-get install -y --no-install-recommends \
libpython3.11 \
qt5-qmake \
qtbase5-dev \
qtbase5-dev-tools \
libqt5charts5-dev \
qtchooser
elif [[ $1 == 22.04 ]]; then
apt-get install -y --no-install-recommends \
libpython3.8 \
qt5-qmake \
qtbase5-dev \
qtbase5-dev-tools \
libqt5charts5-dev \
qtchooser
packages=()
# Chose Python version
if _versionCompare $1 -ge 24.04; then
packages+=("libpython3.12")
elif _versionCompare $1 -ge 22.10; then
packages+=("libpython3.11")
else
apt-get install -y --no-install-recommends \
libpython3.8 \
libqt5charts5-dev \
qt5-default
packages+=("libpython3.8")
fi

# Chose QT libraries
if _versionCompare $1 -ge 22.04; then
packages+=(
"qt5-qmake" \
"qtbase5-dev" \
"qtbase5-dev-tools" \
"libqt5charts5-dev" \
"qtchooser" \
)
else
packages+=(
"libqt5charts5-dev" \
"qt5-default" \
)
fi
apt-get install -y --no-install-recommends ${packages[@]}
}

_installRHELCleanUp() {
Expand Down Expand Up @@ -777,8 +781,12 @@ EOF
fi
if [[ "${option}" == "common" || "${option}" == "all" ]]; then
_installCommonDev
if _versionCompare ${version} -gt 22.10; then
version=22.10
if _versionCompare ${version} -gt 24.04; then
version=24.04
elif _versionCompare ${version} -gt 22.04; then
version=22.04
else
version=20.04
fi
_installOrTools "ubuntu" "${version}" "amd64"
fi
Expand Down

0 comments on commit 33379d0

Please sign in to comment.