Forcing catkin_python_setup to install into devel space?

asked 2019-07-30 15:38:26 -0500

zacwitte gravatar image

I have my ROS python package setup working as the ROS intended way. setup.py is run to install my package into the install space and it inserts the __init__.py into the python dist-packages in the devel space, which does the python voodoo to add the src directory to my pythonpath at runtime.

My linter (pylint) does really helpful static code analysis, but it doesn't actually run the python code so it doesn't understand the changing pythonpath and therefore thinks my moduals don't exist. I'm using this in a team environment, so I don't want to have everyone manually insert source dirs for each python package in our codebase into their permanent python path.

I'd like to configure ROS to install the actual python files into the devel space instead of the python path modifier. I realize this means I'll have to re-run catkin_make to update those python libs and that's OK How can I make this happen?

edit retag flag offensive close merge delete