From 4bf37051869c05e966e58c4e720842038141d7bb Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 22 Feb 2026 16:52:51 -0500 Subject: [PATCH] only do pip3 install if bullseye or initial install Added update check for CubeSatSim installation script. --- install | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install b/install index ced94371..ea757f88 100755 --- a/install +++ b/install @@ -3,10 +3,13 @@ FLAG=0 checkout=0 BULLSEYE=0 +UPDATE=0 FILE=/home/pi/CubeSatSim/cubesatsim # code has already been compiled if [ -f "$FILE" ]; then + UPDATE=1 + echo -e "\nUpdate script for CubeSatSim v2.2\n" if [ -z "$1" ] ; then @@ -377,9 +380,13 @@ fi sudo apt install -y python3-pip python3-smbus libjpeg-dev zlib1g-dev libfreetype6-dev libopenjp2-7 python3-pil python3-serial libusb-1.0-0 libusb-1.0-0-dev -sudo pip3 install --upgrade setuptools +if [ $BULLSEYE -eq 1 ] || [ $UPDATE -eq 0] ; then + + sudo pip3 install --upgrade setuptools + + sudo pip3 install adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219 -sudo pip3 install adafruit-blinka RPI.GPIO adafruit-extended-bus adafruit-circuitpython-ina219 +fi cd /home/pi/CubeSatSim