-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-134632: Fix build-details.json
to use INCLUDEPY
path
#134633
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
Conversation
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.
CC @FFY00 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Gentle ping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mgorny. This seems clearly correct, and matches what the PEP says.
For completeness, I searched the most popular build backends for usage (not that there's potential backwards compat impact, because build-details.json
is brand new, but just to illustrate what the useful variable is):
setuptools
: usesINCLUDEPY
, does not useINCLUDEDIR
meson
/meson-python
: usesINCLUDEPY
, does not useINCLUDEDIR
cmake
/scikit-build-core
: does not use either of the twomaturin
: does not use either of the two
Can this please be merged and backported to 3.14-beta?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mgorny for the fix!
…thonGH-134633) * pythongh-134632: Fix `build-details.json` to use `INCLUDEPY` path 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. * test_build_details: Add tests for the c_api section * test_build_details: Expect pkgconfig for CPython unconditionally (cherry picked from commit 0d582de) Co-authored-by: Michał Górny <[email protected]>
GH-135605 is a backport of this pull request to the 3.14 branch. |
…thonGH-134633) * pythongh-134632: Fix `build-details.json` to use `INCLUDEPY` path 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. * test_build_details: Add tests for the c_api section * test_build_details: Expect pkgconfig for CPython unconditionally (cherry picked from commit 0d582de) Co-authored-by: Michał Górny <[email protected]>
Sorry @mgorny and @FFY00, I had trouble completing the backport.
|
…H-134633) (#135605) gh-134632: Fix `build-details.json` to use `INCLUDEPY` path (GH-134633) * gh-134632: Fix `build-details.json` to use `INCLUDEPY` path 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. * test_build_details: Add tests for the c_api section * test_build_details: Expect pkgconfig for CPython unconditionally (cherry picked from commit 0d582de) Co-authored-by: Michał Górny <[email protected]>
…thon#134633) * pythongh-134632: Fix `build-details.json` to use `INCLUDEPY` path 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. * test_build_details: Add tests for the c_api section * test_build_details: Expect pkgconfig for CPython unconditionally
Fix
build-details.json
generation to useINCLUDEPY
, in order to reference thepythonX.Y
subdirectory of the include directory, as required in PEP-0739, instead of the top-level include directory.build-details.json
:c_api.headers
does not include thepythonX.Y
directory #134632