Skip to content

Commit

Permalink
bpo-21536: Revert Makefile change on python-config (GH-12971)
Browse files Browse the repository at this point in the history
Misc/python-config.sh lives in the build directory, not in the source
directory.
  • Loading branch information
vstinner committed Apr 26, 2019
1 parent ad0daf5 commit 01f073f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.pre.in
Expand Up @@ -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
Expand Down

0 comments on commit 01f073f

Please sign in to comment.