Get setuptools in httpbin installation script too if necessary

This module is not always available, e.g. it's missing in GitHub Actions
Ubuntu 16.04 image currently.
This commit is contained in:
Vadim Zeitlin
2021-07-10 23:45:27 +02:00
parent 525fb911d6
commit 0f91a4bb1f

View File

@@ -37,7 +37,12 @@ httpbin_launch() {
;;
esac
# Ensure that we have at least some version of pip.
# Ensure that we have at least some version of pip and setuptools required
# for installing cffi.
if ! python3 -c 'import setuptools'; then
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-setuptools
fi
if ! python3 -c 'import pip'; then
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-pip
fi