commit
5547ffd352
2 changed files with 5 additions and 5 deletions
BIN
packages/lgpio.zip
Normal file
BIN
packages/lgpio.zip
Normal file
Binary file not shown.
|
|
@ -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")
|
shell.run_command("sudo apt-get install -y wget swig python3-dev python3-setuptools")
|
||||||
# Temporarily install setuptools to as root for the build process
|
# 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("sudo pip3 install -U setuptools", run_as_user=username)
|
||||||
shell.run_command("wget http://abyz.me.uk/lg/lg.zip")
|
shell.run_command("wget https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/raw/refs/heads/main/packages/lgpio.zip")
|
||||||
shell.run_command("unzip lg.zip")
|
shell.run_command("unzip lgpio.zip")
|
||||||
if shell.exists("lg.zip"):
|
if shell.exists("lgpio.zip"):
|
||||||
shell.remove("lg.zip")
|
shell.remove("lgpio.zip")
|
||||||
shell.chdir("lg")
|
shell.chdir("lgpio")
|
||||||
shell.run_command("make")
|
shell.run_command("make")
|
||||||
shell.run_command("sudo make install")
|
shell.run_command("sudo make install")
|
||||||
# Remove setuptools after the build process is complete
|
# Remove setuptools after the build process is complete
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue