Install liblgpio from source when apt packages are missing.

Bookworm does not ship python3-lgpio; the pip module needs liblgpio.so.1. Build Joan's lg library during install and look on system dist-packages at runtime.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-17 23:32:15 +08:00
co-authored by Cursor
parent 7da6ced1c4
commit 9493e58c29
3 changed files with 133 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
adafruit-blinka>=8.0.0
adafruit-circuitpython-dht>=4.0.0
lgpio>=0.2.2.0; platform_machine == "aarch64" or platform_machine == "armv7l"
lgpio>=0.2.2.0; platform_machine == "aarch64" or platform_machine == "armv7l" or platform_machine == "armv6l"
mysqlclient>=2.2.0