Re-added lost information

This commit is contained in:
Nicolas Munnich 2024-05-23 11:12:09 +02:00
parent 7f36d77284
commit 118e02a937
3 changed files with 36 additions and 10 deletions

View file

@ -17,7 +17,4 @@ There are two ways to set up the ZMK development environment:
- [Native](/docs/development/setup/native):\ - [Native](/docs/development/setup/native):\
This uses your operating system directly. Usually runs slightly faster than the Docker approach, and can be preferable for users who already have the dependencies on their system. This uses your operating system directly. Usually runs slightly faster than the Docker approach, and can be preferable for users who already have the dependencies on their system.
Please see the [Docker](/docs/development/setup/docker) instructions or [native](/docs/development/setup/native) instructions to continue setup. Please see the [Docker](/docs/development/setup/docker) instructions or [native](/docs/development/setup/native) instructions to continue setup.

View file

@ -199,33 +199,63 @@ pip install -r zephyr/scripts/requirements-base.txt
<TabItem value="glob"> <TabItem value="glob">
<Tabs groupId="operating-systems" defaultValue="ubuntu"> <Tabs groupId="operating-systems" defaultValue="ubuntu">
<TabItem value="ubuntu" label="Ubuntu"> <TabItem value="ubuntu" label="Ubuntu">
1. Install `west`, and make sure `~/.local/bin` is on your `PATH` environment variable: 1. Install `west`:
```sh ```sh
pip3 install --user -U west pip3 install --user -U west
```
:::note
You need `~/.local/bin` to be on your `PATH` environment variable; verify that it is by running
```sh
west --version
```
If this prints an error rather than a `west` version number, then add `~/.local/bin` to your `PATH`:
```sh
echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc echo 'export PATH=~/.local/bin:"$PATH"' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
``` ```
:::
</TabItem> </TabItem>
<TabItem value="win" label="Windows"> <TabItem value="win" label="Windows">
1. Install `west`, and make sure `~/.local/bin` is on your `PATH` environment variable: 1. Install `west`:
```sh ```sh
pip install -U west pip install -U west
``` ```
:::note
You need the Python scripts directory to be on your PATH environment variable; verify that it is by running
```sh
west --version
```
If this prints an error rather than a `west` version number, then add said directory to your `PATH` with PowerShell:
```powershell
$Scripts = python -c "import sysconfig; print(sysconfig.get_path('scripts'))"
$Path = [Environment]::GetEnvironmentVariable('PATH', 'User')
[Environment]::SetEnvironmentVariable('PATH', "$Path;$Scripts", 'User')
$env:PATH += ";$Scripts"
```
:::
</TabItem> </TabItem>
<TabItem value="mac" label="Mac OS"> <TabItem value="mac" label="Mac OS">
1. Install `west`:
1. Install `west`
```sh ```sh
pip3 install -U west pip3 install -U west
``` ```
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -258,7 +288,6 @@ pip3 install --user -r zephyr/scripts/requirements-base.txt
</TabItem> </TabItem>
<TabItem value="win" label="Windows"> <TabItem value="win" label="Windows">
4. Install the additional dependencies found in Zephyr's `requirements-base.txt`: 4. Install the additional dependencies found in Zephyr's `requirements-base.txt`:
```sh ```sh

View file

@ -49,4 +49,4 @@
.secrettabs { .secrettabs {
display: none; display: none;
} }