Skip to content

Commit

Permalink
chore: drop pip3 dependencies (#39)
Browse files Browse the repository at this point in the history
Use rosdep to resolve dependencies so that we can bloom this package
as a debian release.
  • Loading branch information
reinzor authored Nov 7, 2024
1 parent 4065cef commit 91b2e38
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
17 changes: 2 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,8 @@ COPY . /root/ros2_ws/src

# install dependencies
RUN source /opt/ros/${ROS_DISTRO}/setup.bash
RUN apt-get update \
&& apt-get -y --quiet --no-install-recommends install \
gcc \
git \
python3 \
python3-pip
RUN rosdep install --from-paths src --ignore-src -r -y
RUN if [ "$ROS_DISTRO" = "jazzy" ] || [ "$ROS_DISTRO" = "rolling" ]; then \
pip3 install -r src/requirements.txt --break-system-packages; \
else \
pip3 install -r src/requirements.txt; \
fi
RUN if [ "$ROS_DISTRO" = "rolling" ]; then \
apt install -y ros-rolling-action-tutorials-interfaces; \
fi
RUN apt-get update
RUN rosdep update && rosdep install --from-paths src --ignore-src -r -y

# colcon the ws
FROM deps AS builder
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ $ git clone https://github.com/uleroboticsgroup/yasmin.git
# dependencies
$ cd ~/ros2_ws
$ rosdep install --from-paths src --ignore-src -r -y
$ cd src/yasmin
$ pip3 install -r requirements.txt

# colcon
$ cd ~/ros2_ws
Expand Down
7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

0 comments on commit 91b2e38

Please sign in to comment.