Skip to content

PEP 739 / build-details.json: c_api.headers does not include the pythonX.Y directory #134632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mgorny opened this issue May 24, 2025 · 0 comments
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@mgorny
Copy link
Contributor

mgorny commented May 24, 2025

Bug report

Bug description:

Sorry I didn't notice this while fixing #134455 but c_api.headers key contains the path to top-level system include directory, i.e.:

{
  "c_api": {
    "headers": "/usr/local/include",
    "pkgconfig_path": "/usr/local/lib/pkgconfig"
  }
}

while according to the examples in PEP 739, it should contain the path to the pythonX.Y directory:

Examples

/usr/include/python3.14
include/python3.14
etc.

CPython versions tested on:

3.14, CPython main branch

Operating systems tested on:

Linux

Linked PRs

@mgorny mgorny added the type-bug An unexpected behavior, bug, or error label May 24, 2025
mgorny added a commit to mgorny/cpython that referenced this issue May 24, 2025
Fix ``build-details.json`` generation to use ``INCLUDEPY``, in order to
reference the ``pythonX.Y`` subdirectory of the include directory, as
required in :pep:`739`, instead of the top-level include directory.
@picnixz picnixz added the build The build process and cross-build label May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants