From a667b215c7c1a4ed00228c3d810419d9547da615 Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Fri, 17 May 2024 14:31:03 -0400 Subject: [PATCH] Prefer system packages over pip packages for Jammy Signed-off-by: Christophe Bedard --- setup-ros.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/setup-ros.sh b/setup-ros.sh index 92ed933..f77cc5d 100755 --- a/setup-ros.sh +++ b/setup-ros.sh @@ -58,8 +58,8 @@ apt-get update export PIP_BREAK_SYSTEM_PACKAGES=1 UBUNTU_VERSION=$(lsb_release -cs) case ${UBUNTU_VERSION} in - "noble") - # For 24.04, install using apt only + "noble" | "jammy") + # For 24.04 and 22.04, install using apt only # Basics apt-get install --no-install-recommends --quiet --yes \ clang \ @@ -96,8 +96,8 @@ case ${UBUNTU_VERSION} in apt-get install --no-install-recommends --quiet --yes \ ${RTI_CONNEXT_DDS} ;; - *) - # For 22.04 and older, install with a mix of apt and pip + "focal") + # For 20.04, install with a mix of apt and pip apt-get install --no-install-recommends --quiet --yes \ build-essential \ clang \ @@ -169,14 +169,10 @@ case ${UBUNTU_VERSION} in setuptools \ pyparsing \ wheel - # RTI Connext - DEBIAN_FRONTEND=noninteractive \ - RTI_NC_LICENSE_ACCEPTED=yes \ - apt-get install --no-install-recommends --quiet --yes \ - ${RTI_CONNEXT_DDS} - # libopensplice69 does not exist on Ubuntu 20.04 and later, so we're attempting to - # install it, but won't fail if it does not suceed. - apt-get install --no-install-recommends --quiet --yes libopensplice69 || true + ;; + *) + echo "${UBUNTU_VERSION} not supported" + exit 1 ;; esac