move venv again

master-b-gpio
Alan Johnston 1 month ago committed by GitHub
parent 666c4af6e1
commit 060cf095e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -38,7 +38,7 @@ else
fi fi
if [[ $(grep '11.' /etc/debian_version) ]]; then if [[ $(grep '11.' /etc/debian_version) ]]; then
echo "Installing on Debian 11 (Bullseye)" echo "Debian 11 (Bullseye) detected"
sudo cp /boot/config.txt /boot/config.txt.0 sudo cp /boot/config.txt /boot/config.txt.0
@ -135,7 +135,7 @@ if [[ $(grep '11.' /etc/debian_version) ]]; then
if [[ $(grep 'bookworm' /etc/os-release) ]]; then if [[ $(grep 'bookworm' /etc/os-release) ]]; then
BULLSEYE=1 BULLSEYE=1
echo "Bookworm detected, installation continuing." echo "Bookworm detected."
sudo cp /boot/firmware/config.txt /boot/firmware/config.txt.0 sudo cp /boot/firmware/config.txt /boot/firmware/config.txt.0
@ -253,20 +253,6 @@ elif [[ $(grep 'trixie' /etc/os-release) ]]; then
fi fi
fi fi
if [ ! -d "/home/pi/venv" ]; then
cd
sudo apt install -y python3-venv
sudo python3 -m venv venv
source /home/pi/venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | sudo /home/pi/venv/bin/python3
sudo /home/pi/venv/bin/pip3 install adafruit_extended_bus
sudo /home/pi/venv/bin/pip3 install adafruit-circuitpython-ina219
fi
FILE=/home/pi/CubeSatSim/sim.cfg FILE=/home/pi/CubeSatSim/sim.cfg
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
echo "$FILE exists." echo "$FILE exists."
@ -332,6 +318,20 @@ fi
sudo apt-get update && sudo apt-get dist-upgrade -y sudo apt-get update && sudo apt-get dist-upgrade -y
if [ ! -d "/home/pi/venv" ]; then
cd
sudo apt install -y python3-venv
sudo python3 -m venv venv
source /home/pi/venv/bin/activate
curl https://bootstrap.pypa.io/get-pip.py | sudo /home/pi/venv/bin/python3
sudo /home/pi/venv/bin/pip3 install adafruit_extended_bus
sudo /home/pi/venv/bin/pip3 install adafruit-circuitpython-ina219
fi
sudo apt-get remove pulseaudio -y sudo apt-get remove pulseaudio -y
sudo apt-get install -y gcc g++ make cmake libasound2-dev libudev-dev libavahi-client-dev libgpiod-dev raspi-config sudo apt-get install -y gcc g++ make cmake libasound2-dev libudev-dev libavahi-client-dev libgpiod-dev raspi-config

Loading…
Cancel
Save

Powered by TurnKey Linux.