File tree 2 files changed +13
-3
lines changed 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
787
787
# Build the interpreter
788
788
$(BUILDPYTHON): Programs/python.o $(LINK_PYTHON_DEPS)
789
789
$(LINKCC) $(PY_CORE_LDFLAGS) $(LINKFORSHARED) -o $@ Programs/python.o $(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS)
790
+ echo "$(BUILDPYTHON) built successfully"
790
791
791
792
platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt
792
793
$(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):
28
28
29
29
30
30
def _run (cmd , cwd = None ):
31
- print ('+' , shlex .join (cmd ))
31
+ print ('+' , shlex .join (cmd ), flush = True )
32
32
return subprocess .run (
33
33
cmd ,
34
34
cwd = cwd ,
@@ -37,7 +37,7 @@ def _run(cmd, cwd=None):
37
37
38
38
39
39
def _run_quiet (cmd , cwd = None ):
40
- print ('+' , shlex .join (cmd ))
40
+ print ('+' , shlex .join (cmd ), flush = True )
41
41
try :
42
42
return subprocess .run (
43
43
cmd ,
@@ -53,7 +53,7 @@ def _run_quiet(cmd, cwd=None):
53
53
print (err .stdout )
54
54
print ("--- STDERR ---" )
55
55
print (err .stderr )
56
- print ("---- END ----" )
56
+ print ("---- END ----" , flush = True )
57
57
raise
58
58
59
59
@@ -136,6 +136,15 @@ def prepare(script=None, outdir=None):
136
136
ensure_opt (cmd , 'prefix' , prefix )
137
137
_run (cmd , builddir )
138
138
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
+
139
148
if not MAKE :
140
149
raise UnsupportedError ('make' )
141
150
You can’t perform that action at this time.
0 commit comments