From: Dustin Walde Date: Wed, 1 Jan 2025 01:48:57 +0000 (-0800) Subject: Add python venv setup X-Git-Url: https://git.walde.dev/?a=commitdiff_plain;h=b07f399d8e781d95e7891defd89912338cdd19a7;p=epaper_display Add python venv setup Update wiring pi build name update --- diff --git a/.gitignore b/.gitignore index 819685a..56aab81 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ reference/ build/ +.venv/ diff --git a/scripts/install-WiringPi.sh b/scripts/install-WiringPi.sh index cc7658a..163daf6 100644 --- a/scripts/install-WiringPi.sh +++ b/scripts/install-WiringPi.sh @@ -8,10 +8,10 @@ pushd WiringPi || exit 66 # build the package ./build debian || exit 1 -mv debian-template/wiringpi-*.deb . +mv debian-template/wiringpi_*.deb . # install it -sudo apt install ./wiringpi-*.deb +sudo apt install ./wiringpi_*.deb popd || exit 67 popd || exit 68 diff --git a/scripts/setup-venv.sh b/scripts/setup-venv.sh new file mode 100644 index 0000000..1c31a93 --- /dev/null +++ b/scripts/setup-venv.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +VENV_PATH=.venv + +if [ ! -f "$VENV_PATH/pyvenv.cfg" ]; then + python -m venv .venv +else + echo "Using existing venv" +fi + +"$VENV_PATH/bin/pip" install \ + Pillow \ + spidev \ + RPi.GPIO \ + ; + +