Skip to content

Commit 5329445

Browse files
committed
ROS_PYTHON_VERSION conditional dependency
1 parent d1adfd1 commit 5329445

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

package.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
<package format="2">
1+
<?xml version="1.0"?>
2+
<?xml-model
3+
href="http://download.ros.org/schema/package_format3.xsd"
4+
schematypens="http://www.w3.org/2001/XMLSchema"?>
5+
<package format="3">
26
<name>genjava</name>
37
<version>0.3.4</version>
48
<description>
@@ -17,8 +21,10 @@
1721

1822
<buildtool_depend version_gte="0.5.78">catkin</buildtool_depend>
1923
<depend>genmsg</depend>
20-
<depend>python-catkin-pkg</depend>
21-
<depend>python-rospkg</depend>
24+
<depend condition="$ROS_PYTHON_VERSION == 2">python-catkin-pkg</depend>
25+
<depend condition="$ROS_PYTHON_VERSION == 2">python-rospkg</depend>
26+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-catkin-pkg</depend>
27+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-rospkg</depend>
2228
<depend>rosjava_bootstrap</depend>
2329
<depend>rosjava_build_tools</depend>
2430

0 commit comments

Comments
 (0)