Skip to content

Commit

Permalink
use --break-system-packages if jazzy
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Nov 1, 2024
1 parent 2001cb5 commit c608cf3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ RUN apt-get update \
python3 \
python3-pip
RUN rosdep install --from-paths src --ignore-src -r -y
RUN python3 -m pip install pip==24.3
RUN pip3 install -r src/requirements.txt --break-system-packages
RUN if [ "$ROS_DISTRO" = "jazzy" ]; then \
pip3 install -r src/requirements.txt --break-system-packages; \
else \
pip3 install -r src/requirements.txt; \
fi

# Colcon the ws
FROM deps AS builder
Expand Down

0 comments on commit c608cf3

Please sign in to comment.