Skip to content

Commit d706eb9

Browse files
mgornyFFY00
andauthored
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>
1 parent 458e330 commit d706eb9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixed ``build-details.json`` generation to use the correct ``c_api.headers``
2+
as defined in :pep:`739`, instead of ``c_api.include``.

Tools/build/generate-build-details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def generate_data(schema_version: str) -> collections.defaultdict[str, Any]:
123123
if has_static_library:
124124
data['libpython']['static'] = os.path.join(LIBDIR, LIBRARY)
125125

126-
data['c_api']['include'] = INCLUDEDIR
126+
data['c_api']['headers'] = INCLUDEDIR
127127
if LIBPC:
128128
data['c_api']['pkgconfig_path'] = LIBPC
129129

0 commit comments

Comments
 (0)