Skip to content

Commit 4719fe3

Browse files
committed
GH-131372: only install build-details.json in the main install
Signed-off-by: Filipe Laíns <lains@riseup.net>
1 parent b3bf212 commit 4719fe3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile.pre.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,8 +2373,10 @@ multissltest: all
23732373
# prevent race conditions with PGO builds. PGO builds use recursive make,
23742374
# which can lead to two parallel `./python setup.py build` processes that
23752375
# step on each others toes.
2376+
# Only the main install gets a build-details.json.
23762377
.PHONY: install
23772378
install: @FRAMEWORKINSTALLFIRST@ @INSTALLTARGETS@ @FRAMEWORKINSTALLLAST@
2379+
$(INSTALL_DATA) `cat pybuilddir.txt`/build-details.json $(DESTDIR)$(LIBDEST); \
23782380
if test "x$(ENSUREPIP)" != "xno" ; then \
23792381
case $(ENSUREPIP) in \
23802382
upgrade) ensurepip="--upgrade" ;; \
@@ -2827,7 +2829,6 @@ libinstall: all $(srcdir)/Modules/xxmodule.c
28272829
done
28282830
$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py $(DESTDIR)$(LIBDEST); \
28292831
$(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfig_vars_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).json $(DESTDIR)$(LIBDEST); \
2830-
$(INSTALL_DATA) `cat pybuilddir.txt`/build-details.json $(DESTDIR)$(LIBDEST); \
28312832
$(INSTALL_DATA) `cat pybuilddir.txt`/_missing_stdlib_info.py $(DESTDIR)$(LIBDEST); \
28322833
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
28332834
@ # If app store compliance has been configured, apply the patch to the

0 commit comments

Comments
 (0)