colcon / colcon-ros

Extension for colcon to support ROS packages
http://colcon.readthedocs.io
Apache License 2.0
13 stars 26 forks source link

update PYTHONPATH for catkin packages with Python 3 #96

Closed dirk-thomas closed 4 years ago

dirk-thomas commented 4 years ago

Replacing the Python 2 specific hard coded path with an approach which reads the PYTHON_INSTALL_DIR from the CMake cache and works for Python 2 as well as 3.

This makes it work to build ROS 1 Noetic which uses Python 3.