File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,7 @@ clinic-tests: check-clean-src $(srcdir)/Lib/test/clinic.test.c
787787# Build the interpreter
788788$(BUILDPYTHON): Programs/python.o $(LINK_PYTHON_DEPS)
789789 $(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
790+ echo "$(BUILDPYTHON) built successfully"
790791
791792platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt
792793 $(RUNSHARED) $(PYTHON_FOR_BUILD) -c 'import sys ; from sysconfig import get_platform ; print("%s-%d.%d" % (get_platform(), *sys.version_info[:2]))' >platform
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class UnsupportedError(Exception):
2828
2929
3030def _run (cmd , cwd = None ):
31- print ('+' , shlex .join (cmd ))
31+ print ('+' , shlex .join (cmd ), flush = True )
3232 return subprocess .run (
3333 cmd ,
3434 cwd = cwd ,
@@ -37,7 +37,7 @@ def _run(cmd, cwd=None):
3737
3838
3939def _run_quiet (cmd , cwd = None ):
40- print ('+' , shlex .join (cmd ))
40+ print ('+' , shlex .join (cmd ), flush = True )
4141 try :
4242 return subprocess .run (
4343 cmd ,
@@ -53,7 +53,7 @@ def _run_quiet(cmd, cwd=None):
5353 print (err .stdout )
5454 print ("--- STDERR ---" )
5555 print (err .stderr )
56- print ("---- END ----" )
56+ print ("---- END ----" , flush = True )
5757 raise
5858
5959
@@ -136,6 +136,15 @@ def prepare(script=None, outdir=None):
136136 ensure_opt (cmd , 'prefix' , prefix )
137137 _run (cmd , builddir )
138138
139+ # Dump Makefile
140+ build_Makefile = os .path .join (builddir , 'Makefile' )
141+ with open (build_Makefile , encoding = "utf8" , errors = "backslashreplace" ) as fp :
142+ content = fp .read ()
143+ print ("Makefile" )
144+ print ("--" )
145+ print (content )
146+ print ("--" )
147+
139148 if not MAKE :
140149 raise UnsupportedError ('make' )
141150
You can’t perform that action at this time.
0 commit comments