[3.14] gh-134455: Fix build-details.json to use the `c_api.headers` key (GH-134456) (#134504)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
This commit is contained in:
Miss Islington (bot) 2025-05-22 14:26:26 +02:00 committed by GitHub
parent db98e0bb12
commit 59cb829eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
Fixed ``build-details.json`` generation to use the correct ``c_api.headers``
as defined in :pep:`739`, instead of ``c_api.include``.

View file

@ -123,7 +123,7 @@ def generate_data(schema_version: str) -> collections.defaultdict[str, Any]:
if has_static_library:
data['libpython']['static'] = os.path.join(LIBDIR, LIBRARY)
data['c_api']['include'] = INCLUDEDIR
data['c_api']['headers'] = INCLUDEDIR
if LIBPC:
data['c_api']['pkgconfig_path'] = LIBPC