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

Fix `build-details.json` generation to use the correct `c_api.headers`
key as defined in PEP 739, instead of `c_api.include`.

Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
This commit is contained in:
Michał Górny 2025-05-22 13:28:35 +02:00 committed by GitHub
parent 458e33018a
commit d706eb9e0f
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