Fix installing httpbin in Ubuntu 18.04 CI builds

For some reason the wheel (i.e. binary package) that was installed by
python3-pip 9.0.1-2.3~ubuntu1.18.04.6 before is not installed by the
latest 9.0.1-2.3~ubuntu1.18.04.7 version of it which has just appeared
in Ubuntu 18.04 repositories, and cffi is now built as part of the
module installation, see the following pseudo-diff between the old
successful and the new failing builds:

- Downloading https://files.pythonhosted.org/packages/3a/12/d6066828014b9ccb2bbb8e1d9dc28872d20669b65aeb4a86806a0757813f/cffi-1.15.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.whl
+ Downloading https://files.pythonhosted.org/packages/2b/a8/050ab4f0c3d4c1b8aaa805f70e26e84d0e27004907c5b8ecc1d31815f92a/cffi-1.15.1.tar.gz

And building this module requires libffi, so install it.
This commit is contained in:
Vadim Zeitlin 2023-02-28 18:58:52 +01:00
parent 937b068815
commit 66a39d7230

View file

@ -156,12 +156,14 @@ jobs:
# Explanation for installing some less obvious packages:
# - coreutils contains nproc used in proc_count.sh called below.
# - libffi-dev is needed to build Python cffi module which is
# built as part of "pip install httpbin".
# - Python can't be installed using the action as usual because
# it installs an ABI-incompatible version, see (wrongly, IMO)
# closed https://github.com/actions/setup-python/issues/370
# - xvfb is used for running the GUI tests.
apt-get update -qq
apt-get install -qq coreutils ${compiler-g++} git make pkg-config python3 python3-pip sudo xvfb
apt-get install -qq coreutils ${compiler-g++} git libffi-dev make pkg-config python3 python3-pip sudo xvfb
;;
'')