Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,20 @@
or b"brcm,bcm2711" in compat
or b"brcm,bcm2712" in compat
):
lgpio_req = "lgpio>=0.2.2.0"
try:
import lgpio
except ImportError:
print(
"\n*** lgpio is not installed. On Raspberry Pi OS, install it with:\n"
" sudo apt-get install -y python3-lgpio\n"
" Then recreate your virtual environment with --system-site-packages\n"
" or install the wheel from:\n"
" https://github.com/adafruit/lgpio-python-wheels\n"
)
board_reqs = [
"rpi_ws281x>=4.0.0",
"lgpio>=0.2.2.0",
lgpio_req,
"RPi.GPIO",
"Adafruit-Blinka-Raspberry-Pi5-Neopixel",
]
Expand Down
Loading