Skip to content

Commit

Permalink
use condition attributes to specify Python 2 and 3 dependencies (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored and jacobperron committed Dec 7, 2020
1 parent 03038a6 commit 10cf46b
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<package>
<?xml version="1.0"?>
<?xml-model
href="http://download.ros.org/schema/package_format3.xsd"
schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rospack</name>
<version>2.4.5</version>
<description>ROS Package Tool</description>
Expand All @@ -13,22 +17,23 @@
<author>Morgan Quigley</author>
<author>Dirk Thomas</author>

<depend>boost</depend>
<depend>pkg-config</depend>
<depend condition="$ROS_PYTHON_VERSION == 2">python</depend>
<depend condition="$ROS_PYTHON_VERSION == 3">python3</depend>
<depend>tinyxml</depend>

<buildtool_depend version_gte="0.5.68">catkin</buildtool_depend>

<build_depend>boost</build_depend>
<build_depend>cmake_modules</build_depend>
<build_depend>gtest</build_depend>
<build_depend>pkg-config</build_depend>
<build_depend>python</build_depend>
<build_depend>tinyxml</build_depend>

<run_depend>boost</run_depend>
<run_depend>pkg-config</run_depend>
<run_depend>python</run_depend>
<run_depend>python-catkin-pkg</run_depend>
<run_depend>python-rosdep</run_depend>
<run_depend>ros_environment</run_depend>
<run_depend>tinyxml</run_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-catkin-pkg</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-catkin-pkg</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 2">python-rosdep</exec_depend>
<exec_depend condition="$ROS_PYTHON_VERSION == 3">python3-rosdep</exec_depend>
<exec_depend>ros_environment</exec_depend>

<test_depend>python-coverage</test_depend>
<test_depend condition="$ROS_PYTHON_VERSION == 2">python-coverage</test_depend>
<test_depend condition="$ROS_PYTHON_VERSION == 3">python3-coverage</test_depend>
</package>

0 comments on commit 10cf46b

Please sign in to comment.