Skip to content

Commit 742fd7b

Browse files
committed
ROS_PYTHON_VERSION conditional dependency
1 parent d1adfd1 commit 742fd7b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

package.xml

Lines changed: 12 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>
@@ -16,9 +20,14 @@
1620
<author>Daniel Stonier</author>
1721

1822
<buildtool_depend version_gte="0.5.78">catkin</buildtool_depend>
23+
<buildtool_depend condition="$ROS_PYTHON_VERSION == 2">python-setuptools</buildtool_depend>
24+
<buildtool_depend condition="$ROS_PYTHON_VERSION == 3">python3-setuptools</buildtool_depend>
25+
1926
<depend>genmsg</depend>
20-
<depend>python-catkin-pkg</depend>
21-
<depend>python-rospkg</depend>
27+
<depend condition="$ROS_PYTHON_VERSION == 2">python-catkin-pkg</depend>
28+
<depend condition="$ROS_PYTHON_VERSION == 2">python-rospkg</depend>
29+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-catkin-pkg</depend>
30+
<depend condition="$ROS_PYTHON_VERSION == 3">python3-rospkg</depend>
2231
<depend>rosjava_bootstrap</depend>
2332
<depend>rosjava_build_tools</depend>
2433

0 commit comments

Comments
 (0)