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):
27
27
"""The operation isn't supported."""
28
28
29
29
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
+
30
39
def _run_quiet (cmd , cwd = None ):
31
- # print(f'# {" " .join(shlex.quote(a) for a in cmd)}' )
40
+ print ('+' , shlex .join (cmd ))
32
41
try :
33
42
return subprocess .run (
34
43
cmd ,
@@ -125,7 +134,7 @@ def prepare(script=None, outdir=None):
125
134
ensure_opt (cmd , 'cache-file' , os .path .join (outdir , 'python-config.cache' ))
126
135
prefix = os .path .join (outdir , 'python-installation' )
127
136
ensure_opt (cmd , 'prefix' , prefix )
128
- _run_quiet (cmd , builddir )
137
+ _run (cmd , builddir )
129
138
130
139
if not MAKE :
131
140
raise UnsupportedError ('make' )
You can’t perform that action at this time.
0 commit comments