From 910e42df1c7e14747be1bc40de377c723a5ad5f5 Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Wed, 25 Nov 2026 18:57:29 -0600 Subject: [PATCH 1/2] chore(macos): update macOS colcon build with custom python binary Signed-off-by: Erick G. Islas-Osuna --- .../Installation/Alternatives/macOS-Development-Setup.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst b/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst index c2ff13b057..a085413c0a 100644 --- a/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst +++ b/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst @@ -172,6 +172,8 @@ Run the ``colcon`` tool to build everything (more on using ``colcon`` in :doc:`t Note: due to an unresolved issue with SIP, Qt@5, and PyQt5, we need to disable ``python_qt_binding`` to have the build succeed. This will be removed when the issue is resolved, see: https://github.com/ros-visualization/python_qt_binding/issues/103 +Note: if you happen to use a custom python binary, this can be added by executing it with the added ``--cmake-args -DPython3_EXECUTABLE=$(which python3)`` + Setup environment ----------------- From 496945faed4b42658c5001b263bdc7c158fea56d Mon Sep 17 00:00:00 2001 From: "Erick G. Islas-Osuna" Date: Thu, 26 Nov 2026 10:15:20 -0600 Subject: [PATCH 2/2] docs(macos): apply suggestion with exception example --- .../Alternatives/macOS-Development-Setup.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst b/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst index a085413c0a..2cc505eecb 100644 --- a/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst +++ b/source/Get-Started/Installation/Alternatives/macOS-Development-Setup.rst @@ -172,7 +172,17 @@ Run the ``colcon`` tool to build everything (more on using ``colcon`` in :doc:`t Note: due to an unresolved issue with SIP, Qt@5, and PyQt5, we need to disable ``python_qt_binding`` to have the build succeed. This will be removed when the issue is resolved, see: https://github.com/ros-visualization/python_qt_binding/issues/103 -Note: if you happen to use a custom python binary, this can be added by executing it with the added ``--cmake-args -DPython3_EXECUTABLE=$(which python3)`` + +.. note:: + + If ``colcon`` and the Python packages above were installed into a different Python than the one CMake finds by default (for example with ``pyenv`` or a virtual environment), + the build can fail with ``ModuleNotFoundError: No module named 'catkin_pkg'``. + + In that case, tell CMake which interpreter to use: + + .. code-block:: + + $ colcon build --symlink-install --packages-skip-by-dep python_qt_binding --cmake-args -DPython3_EXECUTABLE=$(which python3) Setup environment -----------------