Skip to content

Commit ff69c7a

Browse files
authored
Ensure rpi.gpio>=0.7.0 (stable) is installed
1 parent ff7d539 commit ff69c7a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

examples/install-service.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,20 @@ Restart=on-failure
143143
WantedBy=multi-user.target
144144
EOF
145145

146-
printf "Checking for rpi.gpio>=0.7.0a2 (for Pi 4 support)\n"
146+
printf "Checking for rpi.gpio>=0.7.0 (for Pi 4 support)\n"
147147
python3 - <<EOF
148148
import RPi.GPIO as GPIO
149149
from pkg_resources import parse_version
150150
import sys
151-
if parse_version(GPIO.VERSION) < parse_version('0.7.0a2'):
151+
if parse_version(GPIO.VERSION) < parse_version('0.7.0'):
152152
sys.exit(1)
153153
EOF
154154

155155
if [ $? -ne 0 ]; then
156156
printf "Installing rpi.gpio\n"
157-
pip3 install --upgrade --pre rpi.gpio
157+
pip3 install --upgrade "rpi.gpio>=0.7.0"
158158
else
159-
printf "rpi.gpio >= 0.7.0a2 already installed\n"
159+
printf "rpi.gpio >= 0.7.0 already installed\n"
160160
fi
161161

162162
printf "Checking for psutil\n"

0 commit comments

Comments
 (0)