Skip to content

Commit 6c6a2a9

Browse files
[3.11] gh-104692: Include commoninstall as a prerequisite for bininstall (GH-104693) (#105429)
This ensures that `commoninstall` is completed before `bininstall` is started when parallel builds are used (`make -j install`), and so the `python3` symlink is only installed after all standard library modules are installed. . (cherry picked from commit 990cb36) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent edb29f0 commit 6c6a2a9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Makefile.pre.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,11 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
18391839
$(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
18401840
fi
18411841

1842-
bininstall: altbininstall
1842+
# We depend on commoninstall here to make sure the installation is already usable
1843+
# before we possibly overwrite the global 'python3' symlink to avoid causing
1844+
# problems for anything else trying to run 'python3' while we install, particularly
1845+
# if we're installing in parallel with -j.
1846+
bininstall: commoninstall altbininstall
18431847
if test ! -d $(DESTDIR)$(LIBPC); then \
18441848
echo "Creating directory $(LIBPC)"; \
18451849
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Include ``commoninstall`` as a prerequisite for ``bininstall``
2+
3+
This ensures that ``commoninstall`` is completed before ``bininstall``
4+
is started when parallel builds are used (``make -j install``), and so
5+
the ``python3`` symlink is only installed after all standard library
6+
modules are installed.

0 commit comments

Comments
 (0)