From 0b069e41c4215a24d5cd7878841e2630b8710aae Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 26 Apr 2019 17:16:49 +0200 Subject: [PATCH] bpo-21536: Revert Makefile change on python-config Misc/python-config.sh lives in the build directory, not in the source directory. --- Makefile.pre.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index d06ad0bc939c35..89479ee7f1a36c 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1460,7 +1460,9 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt -python-config: $(srcdir)/Misc/python-config.in $(srcdir)/Misc/python-config.sh +# bpo-21536: Misc/python-config.sh is generated in the build directory +# from $(srcdir)Misc/python-config.sh.in. +python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh @ # Substitution happens here, as the completely-expanded BINDIR @ # is not available in configure sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py