[issue45595] [Build] Make extensions depend on header files

Christian Heimes report at bugs.python.org
Sun Oct 24 05:01:25 EDT 2021


New submission from Christian Heimes <lists at cheimes.de>:

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.

----------
assignee: christian.heimes
components: Build
messages: 404921
nosy: brett.cannon, christian.heimes
priority: normal
severity: normal
status: open
title: [Build] Make extensions depend on header files
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45595>
_______________________________________


More information about the Python-bugs-list mailing list