We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 792baf1 + f560f6d commit 68068abCopy full SHA for 68068ab
1 file changed
setup.py
@@ -44,9 +44,20 @@
44
or b"brcm,bcm2711" in compat
45
or b"brcm,bcm2712" in compat
46
):
47
+ lgpio_req = "lgpio>=0.2.2.0"
48
+ try:
49
+ import lgpio
50
+ except ImportError:
51
+ print(
52
+ "\n*** lgpio is not installed. On Raspberry Pi OS, install it with:\n"
53
+ " sudo apt-get install -y python3-lgpio\n"
54
+ " Then recreate your virtual environment with --system-site-packages\n"
55
+ " or install the wheel from:\n"
56
+ " https://github.com/adafruit/lgpio-python-wheels\n"
57
+ )
58
board_reqs = [
59
"rpi_ws281x>=4.0.0",
- "lgpio>=0.2.2.0",
60
+ lgpio_req,
61
"RPi.GPIO",
62
"Adafruit-Blinka-Raspberry-Pi5-Neopixel",
63
]
0 commit comments