Add support for Debian Bullseye to the setup script (#1118)

This commit is contained in:
AndreasAc
2022-03-31 15:13:57 -07:00
committed by GitHub
parent 270a6ba333
commit 1a47699f21
+11 -2
View File
@@ -174,13 +174,22 @@ function mn_deps {
python-pep8 ${PYPKG}-pexpect ${PYPKG}-tk python-pep8 ${PYPKG}-pexpect ${PYPKG}-tk
else # Debian/Ubuntu else # Debian/Ubuntu
pf=pyflakes pf=pyflakes
pep8=pep8
# Starting around 20.04, installing pyflakes instead of pyflakes3 # Starting around 20.04, installing pyflakes instead of pyflakes3
# causes Python 2 to be installed, which is exactly NOT what we want. # causes Python 2 to be installed, which is exactly NOT what we want.
if [ `expr $RELEASE '>=' 20.04` = "1" ]; then if [ "$DIST" = "Ubuntu" -a `expr $RELEASE '>=' 20.04` = "1" ]; then
pf=pyflakes3 pf=pyflakes3
fi fi
# Debian 11 "bullseye" renamed
# * pep8 to python3-pep8
# * pyflakes to pyflakes3
if [ "$DIST" = "Debian" -a `expr $RELEASE '>=' 11` = "1" ]; then
pf=pyflakes3
pep8=python3-pep8
fi
$install gcc make socat psmisc xterm ssh iperf telnet \ $install gcc make socat psmisc xterm ssh iperf telnet \
ethtool help2man $pf pylint pep8 \ ethtool help2man $pf pylint $pep8 \
net-tools \ net-tools \
${PYPKG}-pexpect ${PYPKG}-tk ${PYPKG}-pexpect ${PYPKG}-tk
# Install pip # Install pip