Skip to content

adafruit/lgpio-python-wheels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lgpio Python Wheels

Pre-built Python wheels for the lgpio library on aarch64 (ARM64) Linux, targeting Raspberry Pi 5 and other 64-bit ARM single-board computers.

Why?

The upstream lgpio package on PyPI only provides a source distribution that requires swig, python3-dev, and the liblgpio C library to build. This makes pip install lgpio fail on most systems without those build dependencies.

These wheels are statically linked and self-contained — no system libraries or build tools needed.

Available Wheels

Wheel Python Architecture Platform
lgpio-0.2.2.0-cp313-cp313-linux_aarch64.whl 3.13 aarch64 Linux ARM64
lgpio-0.2.2.0-cp314-cp314-linux_aarch64.whl 3.14 aarch64 Linux ARM64

Installation

Using --find-links (recommended)

pip install lgpio --find-links https://github.com/adafruit/lgpio-python-wheels/raw/main/wheels/

Direct URL install

# Python 3.13
pip install https://github.com/adafruit/lgpio-python-wheels/raw/main/wheels/lgpio-0.2.2.0-cp313-cp313-linux_aarch64.whl

# Python 3.14
pip install https://github.com/adafruit/lgpio-python-wheels/raw/main/wheels/lgpio-0.2.2.0-cp314-cp314-linux_aarch64.whl

Alternative: apt (Raspberry Pi OS only)

On Raspberry Pi OS (Bookworm/Trixie), lgpio is available as a system package:

sudo apt-get install -y python3-lgpio

Building Wheels

These wheels were built on a Raspberry Pi 5 running Raspberry Pi OS Trixie (Debian 13) with the PYPI=1 flag for static linking:

# Install build dependencies
sudo apt-get install -y swig python3-dev

# Download lgpio source
pip download --no-binary :all: --no-deps lgpio==0.2.2.0
tar xzf lgpio-0.2.2.0.tar.gz
cd lgpio-0.2.2.0

# Build statically linked wheel
PYPI=1 pip wheel . --no-deps --no-build-isolation -w wheels/

Related

License

The lgpio library is released under the Unlicense. The wheel packaging in this repository is provided under the MIT License.

About

lgpio wheels for Python 3.13 and 3.14

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages