summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-07-29 15:37:30 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-07-29 15:39:18 +0200
commit7d03cdd7aba23a702de930536f774deeea792088 (patch)
tree212d0391cc802f1da7d94b28a362e200e043aa72 /eclass/ros-catkin.eclass
parentdev-ros/urdf: fix search pathes for tests (diff)
downloadgentoo-7d03cdd7aba23a702de930536f774deeea792088.tar.gz
gentoo-7d03cdd7aba23a702de930536f774deeea792088.tar.bz2
gentoo-7d03cdd7aba23a702de930536f774deeea792088.zip
eclass/ros-catkin.eclass: Export ROS_PYTHON_VERSION when building.
Fixes e.g. dev-ros/test_tf2 tests. Closes: https://bugs.gentoo.org/624756 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'eclass/ros-catkin.eclass')
-rw-r--r--eclass/ros-catkin.eclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/eclass/ros-catkin.eclass b/eclass/ros-catkin.eclass
index cbffa1bf8bb..b47f2160cbb 100644
--- a/eclass/ros-catkin.eclass
+++ b/eclass/ros-catkin.eclass
@@ -160,6 +160,8 @@ ros-catkin_src_prepare() {
ros-catkin_src_configure() {
export CATKIN_PREFIX_PATH="${EPREFIX}/usr"
export ROS_ROOT="${EPREFIX}/usr/share/ros"
+ export ROS_PYTHON_VERSION="${EPYTHON#python}"
+
if [ -n "${CATKIN_HAS_MESSAGES}" ] ; then
ROS_LANG_DISABLE=""
use ros_messages_cxx || ROS_LANG_DISABLE="${ROS_LANG_DISABLE}:gencpp"