mirror of
https://github.com/python/cpython
synced 2024-09-16 05:19:56 +00:00
bpo-21536: Revert Makefile change on python-config (GH-12971)
Misc/python-config.sh lives in the build directory, not in the source directory.
This commit is contained in:
parent
ad0daf5b37
commit
01f073f5e4
|
@ -1460,7 +1460,9 @@ libinstall: build_all $(srcdir)/Modules/xxmodule.c
|
||||||
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||||
$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
|
$(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
|
@ # Substitution happens here, as the completely-expanded BINDIR
|
||||||
@ # is not available in configure
|
@ # is not available in configure
|
||||||
sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
|
sed -e "s,@EXENAME@,$(BINDIR)/python$(LDVERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config.py
|
||||||
|
|
Loading…
Reference in a new issue