From 928fec1c016b4095e3084710ec3af295cdb55396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 18 Oct 2021 15:20:46 +0200 Subject: [PATCH] Simplify "Preparing metadata" logging Do not mention whee as this path is also used in legacy editable mode with isolation, where no wheel is involved. This also aligns with the new log entry for setup.py egg-info which says "Preparing metadata (setup.py)". --- src/pip/_internal/operations/build/metadata.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pip/_internal/operations/build/metadata.py b/src/pip/_internal/operations/build/metadata.py index e99af4697c9..7d12438d6ed 100644 --- a/src/pip/_internal/operations/build/metadata.py +++ b/src/pip/_internal/operations/build/metadata.py @@ -23,9 +23,7 @@ def generate_metadata(build_env: BuildEnvironment, backend: Pep517HookCaller) -> # Note that Pep517HookCaller implements a fallback for # prepare_metadata_for_build_wheel, so we don't have to # consider the possibility that this hook doesn't exist. - runner = runner_with_spinner_message( - "Preparing wheel metadata (pyproject.toml)" - ) + runner = runner_with_spinner_message("Preparing metadata (pyproject.toml)") with backend.subprocess_runner(runner): distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)