From 56b6ede1250690835c0795a2262ade90214326ba Mon Sep 17 00:00:00 2001 From: Vit Zikmund Date: Thu, 7 Dec 2023 18:12:09 +0100 Subject: [PATCH] chore: debug output for build env preparation --- src/poetry/utils/env/__init__.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/poetry/utils/env/__init__.py b/src/poetry/utils/env/__init__.py index ed22bb3797b..4cb3e56df17 100644 --- a/src/poetry/utils/env/__init__.py +++ b/src/poetry/utils/env/__init__.py @@ -82,10 +82,10 @@ def build_environment( io.overwrite_error( "Preparing build environment with build-system requirements" - f" {', '.join(requires)}" + f" {', '.join(requires)}\n" ) - venv.run_pip( + output = venv.run_pip( "install", "--disable-pip-version-check", "--ignore-installed", @@ -93,7 +93,10 @@ def build_environment( *poetry.pyproject.build_system.requires, ) - if overwrite: + if io and io.is_debug() and output: + io.write_error(output) + + if not overwrite: assert io is not None io.write_error_line("")