Change some py packages to be installed via apt-get

This commit is contained in:
Melissa LeBlanc-Williams 2023-10-20 14:21:48 -07:00
parent 4c4f24a076
commit 8ab58b59ed
2 changed files with 3 additions and 7 deletions

View file

@ -241,11 +241,8 @@ def softwareinstall():
if not shell.run_command("apt-get install -y tslib"):
if not shell.run_command("apt-get install -y libts-dev"):
warn_exit("Apt failed to install TSLIB!")
if not shell.run_command("apt-get install -y bc fbi git python3-dev python3-pip python3-smbus python3-spidev evtest libts-bin device-tree-compiler libraspberrypi-dev build-essential"):
if not shell.run_command("apt-get install -y bc fbi git python3-dev python3-pip python3-smbus python3-spidev evtest libts-bin device-tree-compiler libraspberrypi-dev build-essential python3-evdev"):
warn_exit("Apt failed to install software!")
pip_path = f"{os.path.dirname(sys.executable)}/pip3"
if not shell.run_command(f"{pip_path} install evdev", run_as_user=os.environ["SUDO_USER"]):
warn_exit("Pip failed to install software!")
return True
def uninstall_bootconfigtxt():

View file

@ -81,9 +81,8 @@ def update_python():
shell.run_command("sudo update-alternatives --skip-auto --config python")
def update_pip():
print("Making sure PIP is installed")
shell.run_command("sudo apt-get install -y python3-pip")
shell.run_command("sudo pip3 install --upgrade setuptools")
print("Making sure PIP and setuptools is installed")
shell.run_command("sudo apt-get install --upgrade -y python3-pip python3-setuptools")
def install_blinka(user=False):
print("Installing latest version of Blinka locally")