https://github.com/python/cpython/commit/bcb6cbdf3bec6a856b739587117963739b80156e
commit: bcb6cbdf3bec6a856b739587117963739b80156e
branch: main
author: Filipe Laíns <[email protected]>
committer: FFY00 <[email protected]>
date: 2025-12-09T14:25:34Z
summary:

GH-131372: only install build-details.json in the main install (#142269)

* GH-131372: only install build-details.json in the main install

Signed-off-by: Filipe Laíns <[email protected]>

* Add news

Signed-off-by: Filipe Laíns <[email protected]>

---------

Signed-off-by: Filipe Laíns <[email protected]>

files:
A Misc/NEWS.d/next/Build/2025-12-04-20-57-15.gh-issue-131372.o397g7.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 6b94e2d88dd035..3aaf47ae6068b3 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -2374,8 +2374,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" ;; \
@@ -2828,7 +2830,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
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.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to