Skip to content

Commit

Permalink
fix installation of __init__.py file for packages where name differs …
Browse files Browse the repository at this point in the history
…from project name (ros/genmsg#34)
  • Loading branch information
dirk-thomas committed Sep 13, 2013
1 parent dbe22a6 commit 0abe502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cmake/extras.cmake.em
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ macro(dynreconf_called)

# mark that generate_dynamic_reconfigure_options() was called in order to detect wrong order of calling with catkin_python_setup()
set(${PROJECT_NAME}_GENERATE_DYNAMIC_RECONFIGURE TRUE)
# check if catkin_python_setup() was called in order to skip installation of generated __init__.py file
set(package_has_static_sources ${${PROJECT_NAME}_CATKIN_PYTHON_SETUP})
# check if catkin_python_setup() installs an __init__.py file for a package with the current project name
# in order to skip the installation of a generated __init__.py file
set(package_has_static_sources ${${PROJECT_NAME}_CATKIN_PYTHON_SETUP_HAS_PACKAGE_INIT})

# generate empty __init__ to make parent folder of msg/srv a python module
if(NOT EXISTS ${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_PYTHON_DESTINATION}/__init__.py)
Expand Down
2 changes: 1 addition & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<rosdoc config="rosdoc.yaml" />
</export>

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

<build_depend>boost</build_depend>
<build_depend>message_generation</build_depend>
Expand Down

0 comments on commit 0abe502

Please sign in to comment.