From 0f91a4bb1fe2238a3a033eee4913f2f6d86b8a4f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 Jul 2021 23:45:27 +0200 Subject: [PATCH] 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. --- build/tools/httpbin.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index 2c048d1302..a2d72d6a1b 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -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