]> granicus.if.org Git - python/commitdiff
bpo-21536: Revert Makefile change on python-config (GH-12971)
authorVictor Stinner <vstinner@redhat.com>
Fri, 26 Apr 2019 15:55:17 +0000 (17:55 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Apr 2019 15:55:17 +0000 (17:55 +0200)
Misc/python-config.sh lives in the build directory, not in the source
directory.

Makefile.pre.in

index d06ad0bc939c35fc5dfc7dd37400a23baa8d7b51..89479ee7f1a36c2ec022c8e1919e0da50869d8b6 100644 (file)
@@ -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