We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff148fe commit da55dc2Copy full SHA for da55dc2
Tools/freeze/test/freeze.py
@@ -27,8 +27,17 @@ class UnsupportedError(Exception):
27
"""The operation isn't supported."""
28
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
39
def _run_quiet(cmd, cwd=None):
- #print(f'# {" ".join(shlex.quote(a) for a in cmd)}')
40
41
try:
42
return subprocess.run(
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')
0 commit comments