mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
[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 990cb3676c
)
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
edb29f0fbe
commit
6c6a2a9143
2 changed files with 11 additions and 1 deletions
|
@ -1839,7 +1839,11 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@
|
||||||
$(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
|
$(DESTDIR)$(BINDIR)/python$(VERSION)$(EXE); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bininstall: altbininstall
|
# We depend on commoninstall here to make sure the installation is already usable
|
||||||
|
# before we possibly overwrite the global 'python3' symlink to avoid causing
|
||||||
|
# problems for anything else trying to run 'python3' while we install, particularly
|
||||||
|
# if we're installing in parallel with -j.
|
||||||
|
bininstall: commoninstall altbininstall
|
||||||
if test ! -d $(DESTDIR)$(LIBPC); then \
|
if test ! -d $(DESTDIR)$(LIBPC); then \
|
||||||
echo "Creating directory $(LIBPC)"; \
|
echo "Creating directory $(LIBPC)"; \
|
||||||
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
|
$(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
Include ``commoninstall`` as a prerequisite for ``bininstall``
|
||||||
|
|
||||||
|
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.
|
Loading…
Add table
Add a link
Reference in a new issue