Home GnuPG

build,python: Fix build with setuptools 72.2.0+

Description

build,python: Fix build with setuptools 72.2.0+

* lang/python/setup.py.in (BuildExtFirstHack.run): Extend members of the
extension instead of lists that were passed to the extension.

setuptools 72.2.0 integrated changes in distutils which included
"Support for Pathlike objects in data files and extensions". With this
change the extensions now take a copy of the sources list passed to the
constructor instead of keeping a reference to the passed list. Hence,
modifying the sources list that was passed to the extension didn't
change the sources list of the extension anymore. This is fixed by
modifying the sources list of the extension directly. For consistency
we do the same for the swig_opts list.

Details

Provenance
ikloeckerAuthored on Sep 2 2024, 3:33 PM
Parents
rGPGMEPY7f0a3a7c94cf: build,python: Fix make distcheck for Python 3.9+
Branches
Unknown
Tags
Unknown
References
tag: gpgme-1.24.1, tag: gpgme-1.24.0

Event Timeline