mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 22:00:58 +00:00
34 lines
605 B
Markdown
34 lines
605 B
Markdown
|
# Python Distributables
|
||
|
Setup and usage instructions for Pigweed Python distributables.
|
||
|
|
||
|
## Prerequisites
|
||
|
Python distributables require Python 3.7 or later.
|
||
|
|
||
|
## Setup
|
||
|
Run the included setup script found inside the unzipped directory.
|
||
|
|
||
|
Linux / MacOS:
|
||
|
```bash
|
||
|
setup.sh
|
||
|
```
|
||
|
|
||
|
Windows:
|
||
|
```
|
||
|
setup.bat
|
||
|
```
|
||
|
|
||
|
The setup script will create a virtual environment called `python-venv`.
|
||
|
|
||
|
### Usage
|
||
|
Once setup is complete, the Python tools can be invoked as runnable modules:
|
||
|
|
||
|
Linux/MacOS:
|
||
|
```bash
|
||
|
python-venv/bin/python -m MODULE_NAME [OPTIONS]
|
||
|
```
|
||
|
|
||
|
Windows:
|
||
|
```
|
||
|
python-venv\Scripts\python -m MODULE_NAME [OPTIONS]
|
||
|
```
|