Skip to content

Commit 01f073f

Browse files
authored
bpo-21536: Revert Makefile change on python-config (GH-12971)
Misc/python-config.sh lives in the build directory, not in the source directory.
1 parent ad0daf5 commit 01f073f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile.pre.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,9 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c
14601460
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
14611461
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
14621462

1463-
python-config: $(srcdir)/Misc/python-config.in $(srcdir)/Misc/python-config.sh
1463+
# bpo-21536: Misc/python-config.sh is generated in the build directory
1464+
# from $(srcdir)Misc/python-config.sh.in.
1465+
python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
14641466
@ # Substitution happens here, as the completely-expanded BINDIR
14651467
@ # is not available in configure
14661468
sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py

0 commit comments

Comments
 (0)