Skip to content

Commit

Permalink
Prefer system packages over pip packages for Jammy
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard committed May 17, 2024
1 parent 640dce4 commit a667b21
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions setup-ros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit a667b21

Please sign in to comment.