Skip to content

Commit 4a032dc

Browse files
pythongh-129019: Move pyconfig.h to Include/
1 parent ffaeb3d commit 4a032dc

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

Android/testbed/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ val ANDROID_DIR = file("../..")
1010
val PYTHON_DIR = ANDROID_DIR.parentFile!!
1111
val PYTHON_CROSS_DIR = file("$PYTHON_DIR/cross-build")
1212
val inSourceTree = (
13-
ANDROID_DIR.name == "Android" && file("$PYTHON_DIR/pyconfig.h.in").exists()
13+
ANDROID_DIR.name == "Android" && file("$PYTHON_DIR/Include/pyconfig.h.in").exists()
1414
)
1515

1616
val KNOWN_ABIS = mapOf(

pyconfig.h.in renamed to Include/pyconfig.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* pyconfig.h.in. Generated from configure.ac by autoheader. */
1+
/* Include/pyconfig.h.in. Generated from configure.ac by autoheader. */
22

33

44
#ifndef Py_PYCONFIG_H

Lib/sysconfig/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ def get_config_h_filename():
462462
inc_dir = _PROJECT_BASE
463463
else:
464464
inc_dir = get_path('platinclude')
465-
return os.path.join(inc_dir, 'pyconfig.h')
465+
return os.path.join(inc_dir, 'Include', 'pyconfig.h')
466466

467467

468468
def get_scheme_names():

Makefile.pre.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ SRCDIRS= @SRCDIRS@
269269
SUBDIRSTOO= Include Lib Misc
270270

271271
# Files and directories to be distributed
272-
CONFIGFILES= configure configure.ac acconfig.h pyconfig.h.in Makefile.pre.in
272+
CONFIGFILES= configure configure.ac acconfig.h Include/pyconfig.h.in Makefile.pre.in
273273
DISTFILES= README.rst ChangeLog $(CONFIGFILES)
274274
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
275275
DIST= $(DISTFILES) $(DISTDIRS)
@@ -1207,7 +1207,7 @@ PYTHON_HEADERS= \
12071207
$(srcdir)/Include/warnings.h \
12081208
$(srcdir)/Include/weakrefobject.h \
12091209
\
1210-
pyconfig.h \
1210+
Include/pyconfig.h \
12111211
$(PARSER_HEADERS) \
12121212
\
12131213
$(srcdir)/Include/cpython/abstract.h \
@@ -2875,8 +2875,8 @@ inclinstall:
28752875
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY)/internal/mimalloc/mimalloc; \
28762876
done; \
28772877
fi
2878-
echo $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2879-
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2878+
echo $(INSTALL_DATA) Include/pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
2879+
$(INSTALL_DATA) Include/pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
28802880

28812881
# Install the library and miscellaneous stuff needed for extending/embedding
28822882
# This goes into $(exec_prefix)
@@ -3076,7 +3076,7 @@ JIT_DEPS = \
30763076
$(srcdir)/Tools/jit/*.c \
30773077
$(srcdir)/Tools/jit/*.py \
30783078
$(srcdir)/Python/executor_cases.c.h \
3079-
pyconfig.h
3079+
Include/pyconfig.h
30803080

30813081
jit_stencils.h: $(JIT_DEPS)
30823082
@REGEN_JIT_COMMAND@
@@ -3209,7 +3209,7 @@ clean: clean-retain-profile clean-bolt
32093209
clobber: clean
32103210
-rm -f $(BUILDPYTHON) $(LIBRARY) $(LDLIBRARY) $(DLLLIBRARY) \
32113211
tags TAGS \
3212-
config.cache config.log pyconfig.h Modules/config.c
3212+
config.cache config.log Include/pyconfig.h Modules/config.c
32133213
-rm -rf build platform
32143214
-rm -rf $(PYTHONFRAMEWORKDIR)
32153215
-rm -rf iOS/Frameworks

Tools/patchcheck/patchcheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def regenerated_configure(file_paths):
178178
def regenerated_pyconfig_h_in(file_paths):
179179
"""Check if pyconfig.h.in has been regenerated."""
180180
if 'configure.ac' in file_paths:
181-
return "yes" if 'pyconfig.h.in' in file_paths else "no"
181+
return "yes" if os.path.join('Include', 'pyconfig.h.in') in file_paths else "no"
182182
else:
183183
return "not needed"
184184

configure

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ else
132132
fi
133133

134134
AC_CONFIG_SRCDIR([Include/object.h])
135-
AC_CONFIG_HEADERS([pyconfig.h])
135+
AC_CONFIG_HEADERS([Include/pyconfig.h])
136136

137137
AC_CANONICAL_HOST
138138
AC_SUBST([build])

0 commit comments

Comments
 (0)