Skip to content

Commit

Permalink
Travis: Downgrade to setuptools 59.6.0 to avoid error in 71.x
Browse files Browse the repository at this point in the history
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: pypa/setuptools#4483
Signed-off-by: Stefan Berger <[email protected]>
  • Loading branch information
stefanberger committed Dec 2, 2024
1 parent 66f9ec8 commit 549339b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 549339b

Please sign in to comment.