From 4719fe3603615718561420d890af267c9b50ab9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Thu, 4 Dec 2025 20:43:52 +0000 Subject: [PATCH 1/2] GH-131372: only install build-details.json in the main install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe Laíns --- Makefile.pre.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index f3086ec1462b6b..bf9143b9464b0d 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2373,8 +2373,10 @@ multissltest: all # prevent race conditions with PGO builds. PGO builds use recursive make, # which can lead to two parallel `./python setup.py build` processes that # step on each others toes. +# Only the main install gets a build-details.json. .PHONY: install install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@ + $(INSTALL_DATA) `cat pybuilddir.txt`/build-details.json $(DESTDIR)$(LIBDEST); \ if test "x$(ENSUREPIP)" != "xno" ; then \ case $(ENSUREPIP) in \ upgrade) ensurepip="--upgrade" ;; \ @@ -2827,7 +2829,6 @@ libinstall: all $(srcdir)/Modules/xxmodule.c done $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py $(DESTDIR)$(LIBDEST); \ $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfig_vars_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).json $(DESTDIR)$(LIBDEST); \ - $(INSTALL_DATA) `cat pybuilddir.txt`/build-details.json $(DESTDIR)$(LIBDEST); \ $(INSTALL_DATA) `cat pybuilddir.txt`/_missing_stdlib_info.py $(DESTDIR)$(LIBDEST); \ $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt @ # If app store compliance has been configured, apply the patch to the From 26868fad6ec1a12d92392d237f88373e9b0144f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Thu, 4 Dec 2025 20:57:17 +0000 Subject: [PATCH 2/2] Add news MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Filipe Laíns --- .../next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst diff --git a/Misc/NEWS.d/next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst b/Misc/NEWS.d/next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst new file mode 100644 index 00000000000000..362197f110b7dd --- /dev/null +++ b/Misc/NEWS.d/next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst @@ -0,0 +1,2 @@ +``build-details.py`` will only be installed as part of the main install +(``make install``). ``make altinstall`` will no longer include it.