Skip to content

Commit

Permalink
Fix building of ament packages
Browse files Browse the repository at this point in the history
While ROS2 installs python packages into lib/python3.x/site-packages,
ROS1 expects them to be in lib/python3/dist-packages.
  • Loading branch information
rhaschke committed Oct 31, 2023
1 parent 744969d commit ca547fb
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
34 changes: 27 additions & 7 deletions ros-one.repos
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ repositories:
type: git
url: https://github.com/rhaschke/actionlib.git
version: noetic-devel
ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: rolling
ament_package:
type: git
url: https://github.com/ros-o/ament_package.git
version: obese-devel
angles:
type: git
url: https://github.com/ros/angles.git
Expand Down Expand Up @@ -43,14 +51,14 @@ repositories:
type: git
url: https://github.com/TAMS-Group/bio_ik.git
version: master
boost_sml:
type: git
url: https://github.com/ros-o/boost_sml.git
version: obese-devel
bond_core:
type: git
url: https://github.com/ros-o/bond_core
version: obese-devel
boost_sml:
type: git
url: https://github.com/ros-o/boost_sml.git
version: obese-devel
catkin:
type: git
url: https://github.com/ubi-agni/catkin
Expand Down Expand Up @@ -91,6 +99,10 @@ repositories:
type: git
url: https://github.com/crigroup/criutils.git
version: master
ddynamic_reconfigure:
type: git
url: https://github.com/ros-o/ddynamic_reconfigure.git
version: obese-devel
diagnostics:
type: git
url: https://github.com/ros-o/diagnostics.git
Expand Down Expand Up @@ -195,6 +207,14 @@ repositories:
type: git
url: https://github.com/ros-visualization/gl_dependency.git
version: kinetic-devel
google_benchmark_vendor:
type: git
url: https://github.com/ament/google_benchmark_vendor.git
version: rolling
googletest:
type: git
url: https://github.com/ament/googletest.git
version: rolling
graph_msgs:
type: git
url: https://github.com/PickNikRobotics/graph_msgs.git
Expand Down Expand Up @@ -328,9 +348,9 @@ repositories:
url: https://github.com/pal-robotics/pal_statistics.git
version: kinetic-devel
panda_moveit_config:
type: git
url: https://github.com/ros-planning/panda_moveit_config.git
version: noetic-devel
type: git
url: https://github.com/ros-planning/panda_moveit_config.git
version: noetic-devel
pcl_msgs:
type: git
url: https://github.com/ros-perception/pcl_msgs
Expand Down
4 changes: 3 additions & 1 deletion src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ function build_pkg {

ici_label "${BLOOM_QUIET[@]}" bloom-generate "${BLOOM_GEN_CMD}" --os-name="$DISTRIBUTION" --os-version="$DEB_DISTRO" --ros-distro="$ROS_DISTRO" || return 2

# Enable CATKIN_INSTALL_INTO_PREFIX_ROOT for catkin package
if [ "$pkg_name" = "catkin" ]; then
# Enable CATKIN_INSTALL_INTO_PREFIX_ROOT for catkin package
sed -i 's@-DCATKIN_BUILD_BINARY_PACKAGE="1"@-DCATKIN_INSTALL_INTO_PREFIX_ROOT="1"@' debian/rules
fi
# Configure ament python packages to install into lib/python3/dist-packages (instead of lib/python3.x/site-packages)
sed -i 's@lib/{interpreter}/site-packages@lib/python3/dist-packages@' debian/rules

# https://github.com/ros-infrastructure/bloom/pull/643
echo 11 > debian/compat
Expand Down

0 comments on commit ca547fb

Please sign in to comment.