]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-134455: Fix `build-details.json` to use the ``c_api.headers`` key (#134456)
authorMichał Górny <mgorny@gentoo.org>
Thu, 22 May 2025 11:28:35 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 11:28:35 +0000 (11:28 +0000)
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>
Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst [new file with mode: 0644]
Tools/build/generate-build-details.py

diff --git a/Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst b/Misc/NEWS.d/next/Build/2025-05-21-19-46-28.gh-issue-134455.vdwlrq.rst
new file mode 100644 (file)
index 0000000..08833b3
--- /dev/null
@@ -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``.
index 5dc100b8b05e5ea01f0243bf181b1fca28ec6df0..87e262065ec87b1a3038903502fc6af7f3e8bf88 100644 (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