diff options
author | Jeffery To <jeffery.to@gmail.com> | 2023-07-05 10:51:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-05 10:51:16 (GMT) |
commit | 2edec6ad9f6cbce217427e2352e577a7a83cd774 (patch) | |
tree | 5a350dd9a3862636b77ad323a13b78f712a20a65 /Makefile.pre.in | |
parent | 637102980d12e5ff99b69ddffd5f05ecfe0adeb6 (diff) | |
download | cpython-2edec6ad9f6cbce217427e2352e577a7a83cd774.zip cpython-2edec6ad9f6cbce217427e2352e577a7a83cd774.tar.gz cpython-2edec6ad9f6cbce217427e2352e577a7a83cd774.tar.bz2 |
[3.12] gh-104692: Include commoninstall as a prerequisite for bininstall (GH-104693) (#105428)
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 990cb3676c2edb7e5787372d6cbe360a73367f4c)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index e2adc3c..12788d1 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -2014,7 +2014,11 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORKPYTHONW@ fi .PHONY: bininstall -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 \ echo "Creating directory $(LIBPC)"; \ $(INSTALL) -d -m $(DIRMODE) $(DESTDIR)$(LIBPC); \ |