File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,17 @@ class UnsupportedError(Exception):
2727 """The operation isn't supported."""
2828
2929
30+ def _run (cmd , cwd = None ):
31+ print ('+' , shlex .join (cmd ))
32+ return subprocess .run (
33+ cmd ,
34+ cwd = cwd ,
35+ check = True ,
36+ )
37+
38+
3039def _run_quiet (cmd , cwd = None ):
31- # print(f'# {" " .join(shlex.quote(a) for a in cmd)}' )
40+ print ('+' , shlex .join (cmd ))
3241 try :
3342 return subprocess .run (
3443 cmd ,
@@ -125,7 +134,7 @@ def prepare(script=None, outdir=None):
125134 ensure_opt (cmd , 'cache-file' , os .path .join (outdir , 'python-config.cache' ))
126135 prefix = os .path .join (outdir , 'python-installation' )
127136 ensure_opt (cmd , 'prefix' , prefix )
128- _run_quiet (cmd , builddir )
137+ _run (cmd , builddir )
129138
130139 if not MAKE :
131140 raise UnsupportedError ('make' )
You can’t perform that action at this time.
0 commit comments