Merge pull request #352 from makermelissa/main

Host the lgpio package
This commit is contained in:
Limor "Ladyada" Fried 2025-08-15 21:56:14 -04:00 committed by GitHub
commit 5547ffd352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

BIN
packages/lgpio.zip Normal file

Binary file not shown.

View file

@ -106,11 +106,11 @@ def check_and_install_for_pi5(pi_model, user=False):
shell.run_command("sudo apt-get install -y wget swig python3-dev python3-setuptools")
# Temporarily install setuptools to as root for the build process
shell.run_command("sudo pip3 install -U setuptools", run_as_user=username)
shell.run_command("wget http://abyz.me.uk/lg/lg.zip")
shell.run_command("unzip lg.zip")
if shell.exists("lg.zip"):
shell.remove("lg.zip")
shell.chdir("lg")
shell.run_command("wget https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/raw/refs/heads/main/packages/lgpio.zip")
shell.run_command("unzip lgpio.zip")
if shell.exists("lgpio.zip"):
shell.remove("lgpio.zip")
shell.chdir("lgpio")
shell.run_command("make")
shell.run_command("sudo make install")
# Remove setuptools after the build process is complete