From 36cefd33a0787e766f6f7de8733c5003e4d8dd7f Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Thu, 2 Oct 2025 00:08:30 -0600 Subject: [PATCH] doc: Update local setup docs to use `west packages pip` Install Zephyr deps using the newer `west packages pip --install`. Signed-off-by: Peter Johanson --- .../local-toolchain/setup/native.mdx | 40 ++++--------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/docs/docs/development/local-toolchain/setup/native.mdx b/docs/docs/development/local-toolchain/setup/native.mdx index 467d13ca7..2db051cd9 100644 --- a/docs/docs/development/local-toolchain/setup/native.mdx +++ b/docs/docs/development/local-toolchain/setup/native.mdx @@ -197,16 +197,10 @@ This step pulls down quite a bit of tooling, be patient! west zephyr-export ``` -7. Install the additional dependencies found in Zephyr's `requirements-base.txt`: +7. Install the additional Zephyr dependencies using `west`: ```sh -pip install -r zephyr/scripts/requirements-base.txt -``` - -If you are going to build firmware with [ZMK Studio](../../../features/studio.md), also install `requirements-extras.txt` dependencies: - -```sh -pip install -r zephyr/scripts/requirements-extras.txt +west packages pip --install ``` @@ -295,47 +289,29 @@ west zephyr-export -4. Install the additional dependencies found in Zephyr's `requirements-base.txt`: +4. Install the additional Zephyr dependencies using `west`: ```sh -pip3 install --user -r zephyr/scripts/requirements-base.txt -``` - -If you are going to build firmware with [ZMK Studio](../../../features/studio.md), also install `requirements-extras.txt` dependencies: - -```sh -pip3 install -r zephyr/scripts/requirements-extras.txt +west packages pip --install ``` -4. Install the additional dependencies found in Zephyr's `requirements-base.txt`: +4. Install the additional Zephyr dependencies using `west`: ```sh -pip install -r zephyr/scripts/requirements-base.txt -``` - -If you are going to build firmware with [ZMK Studio](../../../features/studio.md), also install `requirements-extras.txt` dependencies: - -```sh -pip install -r zephyr/scripts/requirements-extras.txt +west packages pip --install ``` -4. Install the additional dependencies found in Zephyr's `requirements-base.txt`. +4. Install the additional Zephyr dependencies using `west`: ```sh -pip3 install -r zephyr/scripts/requirements-base.txt -``` - -If you are going to build firmware with [ZMK Studio](../../../features/studio.md), also install `requirements-extras.txt` dependencies: - -```sh -pip3 install -r zephyr/scripts/requirements-extras.txt +west packages pip --install ```