diff --git a/Makefile.pre.in b/Makefile.pre.in index dd28ff5d2a3ed1..73f12c397f9222 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -156,7 +156,7 @@ BINDIR= @bindir@ LIBDIR= @libdir@ MANDIR= @mandir@ INCLUDEDIR= @includedir@ -CONFINCLUDEDIR= $(exec_prefix)/include +CONFINCLUDEDIR= $(INCLUDEDIR) PLATLIBDIR= @PLATLIBDIR@ SCRIPTDIR= $(prefix)/$(PLATLIBDIR) # executable name for shebangs diff --git a/Misc/NEWS.d/next/Build/2025-11-18-10-30-45.gh-issue-39936.Kx9mPq.rst b/Misc/NEWS.d/next/Build/2025-11-18-10-30-45.gh-issue-39936.Kx9mPq.rst new file mode 100644 index 00000000000000..886ff0cbf50232 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-11-18-10-30-45.gh-issue-39936.Kx9mPq.rst @@ -0,0 +1,4 @@ +Fixed ``pyconfig.h`` installation to respect ``--includedir`` configure option. +Previously, ``pyconfig.h`` was always installed to ``$(exec_prefix)/include`` +instead of the directory specified by ``--includedir``. +Patch by Shamil Abdulaev.