Skip to content

Commit

Permalink
chore: remove EXTERNALLY-MANAGED after pip is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlenny committed Jun 12, 2024
1 parent 4ae8b6c commit c5fdff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c5fdff4

Please sign in to comment.