Skip to content

Commit da55dc2

Browse files
committed
DEBUG
1 parent ff148fe commit da55dc2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

Tools/freeze/test/freeze.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
3039
def _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')

0 commit comments

Comments
 (0)