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:
@@ -37,7 +37,12 @@ httpbin_launch() {
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
if ! python3 -c 'import pip'; then
|
||||||
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-pip
|
sudo apt-get -q -o=Dpkg::Use-Pty=0 install python3-pip
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user