diff --git a/package.xml b/package.xml
index d49bbbef0728fa31f222eda865550fbffa864386..3bf4b802d025fc435e82eab0a572b24c0d3d96de 100644
--- a/package.xml
+++ b/package.xml
@@ -13,6 +13,8 @@
     <!-- The following tags are recommended by REP-136 -->
     <exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
     <buildtool_depend>cmake</buildtool_depend>
+    <depend condition="$ROS_PYTHON_VERSION == 2">python</depend>
+    <depend condition="$ROS_PYTHON_VERSION == 3">python3</depend>
     <export>
         <build_type>cmake</build_type>
     </export>