From 314f5f411b32a1df6ba82ba9fc56572b59668dd8 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Mon, 2 Dec 2024 12:22:15 -0500 Subject: [PATCH] Travis: Downgrade to setuptools 59.6.0 to avoid error in 71.x There seems to be a well known error in setuptools 71.x that prevents installation of cpp-coveralls on Travis now: File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 285, in _distribution_fullname canonicalize_version(version, strip_trailing_zero=False), TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero' Fall back to the default version that is used in Ubuntu Jammy (59.6.0) since later versions also lead to the same error. Link: https://github.com/pypa/setuptools/issues/4483 Signed-off-by: Stefan Berger --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4c2af57a0..e3a1d4088 100644 --- a/.travis.yml +++ b/.travis.yml @@ -87,6 +87,7 @@ matrix: SWTPM_TEST_STORE_VOLATILE="1" before_script: - sudo apt-get -y install libtpm2-pkcs11-tools + - sudo pip install setuptools==59.6.0 # Default Jammy version - sudo pip install cpp-coveralls - p=$PWD; while [ "$PWD" != "/" ]; do chmod o+x . &>/dev/null ; cd .. ; done; cd $p && sudo mkdir src/swtpm/.libs