This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [Build] Make extensions depend on header files
Type: enhancement Stage: resolved
Components: Build Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: brett.cannon, christian.heimes
Priority: normal Keywords: patch

Created on 2021-10-24 09:01 by christian.heimes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 29198 merged christian.heimes, 2021-10-24 09:07
Messages (2)
msg404921 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-24 09:01
Any change to a Python header file triggers a rebuild of Python core objects. The extension modules are not automatically rebuild in several cases. This is slightly annoying for core development because it forces me to do ``make clean`` too often.

* setup.py adds dependencies on Includes/*.h but not on header files in "internal" and "cpython" subdirectory
* Modules/Setup and makesetup do not add a dependency on PYTHON_HEADERS
* Modules/Setup is also missing dependencies on module-specific headers, e.g. _sre.o should depend on sre.h.
msg404986 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2021-10-25 18:01
New changeset 81669d1b7bd668d1bd0fab92836e8b5e7976e362 by Christian Heimes in branch 'main':
bpo-45595: Make extensions depend on header files (GH-29198)
https://github.com/python/cpython/commit/81669d1b7bd668d1bd0fab92836e8b5e7976e362
History
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89758
2021-10-25 18:38:31christian.heimessetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-10-25 18:01:12christian.heimessetmessages: + msg404986
2021-10-24 09:07:54christian.heimessetkeywords: + patch
stage: patch review
pull_requests: + pull_request27467
2021-10-24 09:01:25christian.heimescreate