mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-45595: Make extensions depend on header files (GH-29198)
``setup.py`` and ``makesetup`` now track build dependencies on all Python header files and module specific header files. Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
77e3f224d6
commit
81669d1b7b
4 changed files with 34 additions and 3 deletions
8
setup.py
8
setup.py
|
@ -409,8 +409,11 @@ class PyBuildExt(build_ext):
|
|||
for filename in self.distribution.scripts]
|
||||
|
||||
# Python header files
|
||||
include_dir = escape(sysconfig.get_path('include'))
|
||||
headers = [sysconfig.get_config_h_filename()]
|
||||
headers += glob(os.path.join(escape(sysconfig.get_path('include')), "*.h"))
|
||||
headers.extend(glob(os.path.join(include_dir, "*.h")))
|
||||
headers.extend(glob(os.path.join(include_dir, "cpython", "*.h")))
|
||||
headers.extend(glob(os.path.join(include_dir, "internal", "*.h")))
|
||||
|
||||
for ext in self.extensions:
|
||||
ext.sources = [ find_module_file(filename, moddirlist)
|
||||
|
@ -2473,6 +2476,9 @@ class PyBuildExt(build_ext):
|
|||
depends=[
|
||||
'socketmodule.h',
|
||||
'_ssl.h',
|
||||
'_ssl_data_111.h',
|
||||
'_ssl_data_300.h',
|
||||
'_ssl_data.h',
|
||||
'_ssl/debughelpers.c',
|
||||
'_ssl/misc.c',
|
||||
'_ssl/cert.c',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue