diff --git a/source/Installation/Alternatives/Windows-Development-Setup.rst b/source/Installation/Alternatives/Windows-Development-Setup.rst index 06e96b2c5bd..8082a979569 100644 --- a/source/Installation/Alternatives/Windows-Development-Setup.rst +++ b/source/Installation/Alternatives/Windows-Development-Setup.rst @@ -93,6 +93,12 @@ To build the ``\{DISTRO}`` folder tree: We're using ``--merge-install`` here to avoid a ``PATH`` variable that is too long at the end of the build. If you're adapting these instructions to build a smaller workspace then you might be able to use the default behavior which is isolated install, i.e. where each package is installed to a different folder. +.. note:: + + If multiple versions of Python 3 are installed and added to path, cmake-args can be set in order to ensure only the desired Python 3 executable and library folders are used for the build: + ``colcon build --merge-install --cmake-args -DPYTHON_EXECUTABLE= -DPython3_ROOT_DIR= -DPython3_FIND_STRATEGY=LOCATION -DPython3_FIND_REGISTRY=NEVER`` +where ```` is e.g. ``C:\Python38\python.exe``, and ```` is e.g. ``C:\Python38`` (the location Chocolatey will install Python) + .. note:: If you are doing a debug build use ``python_d path\to\colcon_executable`` ``colcon``.