Installation¶
Installing PyOZ CLI¶
The easiest way to get the pyoz CLI:
This installs prebuilt binaries for Linux (x86_64/aarch64), macOS (x86_64/arm64), and Windows (x86_64/arm64). No compilation needed.
Alternatively, download a binary from GitHub Releases or build from source with zig build cli.
Requirements¶
- Zig 0.15.0 or later
- Python 3.8 or later (with development headers)
Python Version Support
PyOZ supports Python 3.8 through 3.13. Testing is performed on Python 3.9 - 3.13.
Installing Zig¶
Linux¶
# Download from ziglang.org
wget https://ziglang.org/download/0.15.0/zig-linux-x86_64-0.15.0.tar.xz
tar xf zig-linux-x86_64-0.15.0.tar.xz
export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.15.0
Or use your package manager:
macOS¶
Windows¶
Download from ziglang.org and add to PATH.
Installing Python Development Headers¶
Linux¶
# Ubuntu/Debian
sudo apt install python3-dev
# Fedora
sudo dnf install python3-devel
# Arch Linux
sudo pacman -S python
macOS¶
Python development headers are included with the system Python or Homebrew Python.
Windows¶
Install Python from python.org with the "Install development files" option.
Setting Up a PyOZ Project¶
Option 1: Use the CLI (Recommended)¶
The pyoz CLI handles all project setup, build configuration, and Python embedding automatically:
This generates the correct build.zig, build.zig.zon, and pyproject.toml — no manual configuration needed. See the Quick Start for a full walkthrough.
Option 2: Clone the Repository¶
Verifying Installation¶
After building with pyoz build, install and test:
Next Steps¶
Continue to the Quick Start guide to build your first PyOZ module.