From 732785aefa28cadafb7be38109d0e53faaf2e45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 3 Jul 2025 17:50:43 +0200 Subject: [PATCH] doc: develop: gsg: consolidate python3 install instructions for ubuntu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Installing python3-venv should be done right when all dependencies are installed. - Installing python3-venv is enough to pull wheel, setuptools (python3-setuptools-whl), and pip (python3-pip-whl) so that they are available in the venv, so reduce the list of packages to install accordingly. Signed-off-by: Benjamin Cabé --- doc/develop/getting_started/index.rst | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/doc/develop/getting_started/index.rst b/doc/develop/getting_started/index.rst index 6b6f71c1710..d539a2dbaba 100644 --- a/doc/develop/getting_started/index.rst +++ b/doc/develop/getting_started/index.rst @@ -78,9 +78,8 @@ The current minimum required version for the main dependencies are: .. code-block:: bash sudo apt install --no-install-recommends git cmake ninja-build gperf \ - ccache dfu-util device-tree-compiler wget \ - python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \ - make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1 + ccache dfu-util device-tree-compiler wget python3-dev python3-venv python3-tk \ + xz-utils file make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1 .. note:: @@ -204,12 +203,6 @@ chosen. You'll also install Zephyr's additional Python dependencies in a .. group-tab:: Ubuntu - #. Use ``apt`` to install Python ``venv`` package: - - .. code-block:: bash - - sudo apt install python3-venv - #. Create a new virtual environment: .. code-block:: bash