Host the lgpio package

This commit is contained in:
Melissa LeBlanc-Williams 2025-08-15 14:59:49 -07:00
parent adcb740a19
commit 57cca7fd7d
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