diff options
author | Marc-Andre Lemburg <mal@egenix.com> | 2012-04-25 17:45:11 (GMT) |
---|---|---|
committer | Marc-Andre Lemburg <mal@egenix.com> | 2012-04-25 17:45:11 (GMT) |
commit | aed97733df4b00d47cf1d48779fb840e029c4181 (patch) | |
tree | 92741f9cb60d1a46085b8d4d8f0800a4d071da86 /Makefile.pre.in | |
parent | ae7758457fa8a55dc7a702ccdb9e46910a45a5ee (diff) | |
download | cpython-aed97733df4b00d47cf1d48779fb840e029c4181.zip cpython-aed97733df4b00d47cf1d48779fb840e029c4181.tar.gz cpython-aed97733df4b00d47cf1d48779fb840e029c4181.tar.bz2 |
Issue #14605 and #14642: Issue a warning in case Python\importlib.h needs to
be rebuilt, but there's no Python interpreter around to freeze the bootstrap
script.
Forgot to include Makefile.pre.in in changeset 76549:acfdf46b8de1.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 3f43837..e6b37f8 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -573,12 +573,23 @@ Modules/Setup: $(srcdir)/Modules/Setup.dist Modules/_testembed: Modules/_testembed.o $(LIBRARY) $(LDLIBRARY) $(PY3LIBRARY) $(LINKCC) $(PY_LDFLAGS) $(LINKFORSHARED) -o $@ Modules/_testembed.o $(BLDLIBRARY) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) + ############################################################################ # Importlib Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py $(srcdir)/Python/freeze_importlib.py - ./$(BUILDPYTHON) $(srcdir)/Python/freeze_importlib.py \ - $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h + @if test -f ./$(BUILDPYTHON); then \ + ./$(BUILDPYTHON) $(srcdir)/Python/freeze_importlib.py \ + $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h; \ + else \ + echo "----------------------------------------------------------"; \ + echo "Python/importlib.h needs to be rebuilt, but no interpreter"; \ + echo "is available to do so. Leaving the previous version in"; \ + echo "place. You may want to run ''make'' a second time after"; \ + echo "this build is complete."; \ + echo "----------------------------------------------------------"; \ + fi + ############################################################################ # Special rules for object files |