From 9e04c6a2bb0119410597cfe641cc9f87537bcf94 Mon Sep 17 00:00:00 2001 From: sggutierrez95 <33558851+sggutierrez95@users.noreply.github.com> Date: Fri, 9 May 2025 12:26:58 -0500 Subject: [PATCH] Update Using-Python-Packages.rst You must inform them of changing their setup.cfg otherwise this doc is useless. Signed-off-by: sggutierrez95 <33558851+sggutierrez95@users.noreply.github.com> --- source/How-To-Guides/Using-Python-Packages.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/How-To-Guides/Using-Python-Packages.rst b/source/How-To-Guides/Using-Python-Packages.rst index a62d11a805d..a32de047b66 100644 --- a/source/How-To-Guides/Using-Python-Packages.rst +++ b/source/How-To-Guides/Using-Python-Packages.rst @@ -86,6 +86,13 @@ Next, install the Python packages that you want in your virtual environment: python3 -m pip install gtsam pyserial… etc +Next in your ``setup.cfg`` you must inform distutils of the virtual environment interpreter when installing entry points. Otherwise it will default to the system interpreter and fail to find any of the virtual environment's libraries. + +.. code-block:: ini + + [build] + executable=/usr/bin/env python3 + Now you can build your workspace and run your python node that depends on packages installed in your virtual environment. .. code-block:: console