Skip to content

Commit be332a4

Browse files
committed
chore: debug output for build env preparation
1 parent 2a84a77 commit be332a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/poetry/utils/env/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,21 @@ def build_environment(
8282

8383
io.overwrite_error(
8484
"<b>Preparing</b> build environment with build-system requirements"
85-
f" {', '.join(requires)}"
85+
f" {', '.join(requires)}\n"
8686
)
8787

88-
venv.run_pip(
88+
output = venv.run_pip(
8989
"install",
9090
"--disable-pip-version-check",
9191
"--ignore-installed",
9292
"--no-input",
9393
*poetry.pyproject.build_system.requires,
9494
)
9595

96-
if overwrite:
96+
if io and io.is_debug() and output:
97+
io.write_error(output)
98+
99+
if not overwrite:
97100
assert io is not None
98101
io.write_error_line("")
99102

0 commit comments

Comments
 (0)