From c5fdff46984add59793a17bf2da064f1724c8b34 Mon Sep 17 00:00:00 2001 From: David Revay Date: Wed, 12 Jun 2024 12:05:17 +1000 Subject: [PATCH] chore: remove EXTERNALLY-MANAGED after pip is installed --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4527354..1c6fdc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,6 @@ ENV ROS_DISTRO="${ROS_DISTRO}" ENV ROS_PYTHON_VERSION=3 ENV RMW_IMPLEMENTATION rmw_fastrtps_cpp -# Remove EXTERNALLY-MANAGED so we don't need to add --break-system-packages to pip -RUN sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED - # setup timezone RUN echo 'Etc/UTC' > /etc/timezone && \ ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \ @@ -94,6 +91,9 @@ RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14 && \ update-alternatives --install /usr/bin/gcc-nm gcc-nm /usr/bin/gcc-nm-14 14 && \ update-alternatives --install /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-14 14 +# Remove EXTERNALLY-MANAGED so we don't need to add --break-system-packages to pip +RUN sudo rm /usr/lib/python3.*/EXTERNALLY-MANAGED + # bootstrap rosdep RUN rosdep init && \ rosdep update --rosdistro $ROS_DISTRO