Skip to content

Commit

Permalink
Merge pull request #10525 from sbidoul/dedent-metadata-preparation-lo…
Browse files Browse the repository at this point in the history
…g-sbi

Correctly indent metadata preparation messages
  • Loading branch information
pradyunsg authored Sep 29, 2021
2 parents d62936a + e377235 commit 3799208
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions news/10524.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Correctly indent metadata preparation messages in pip output.
10 changes: 4 additions & 6 deletions src/pip/_internal/req/req_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
direct_url_from_link,
)
from pip._internal.utils.hashes import Hashes
from pip._internal.utils.logging import indent_log
from pip._internal.utils.misc import (
ask_path_exists,
backup_dir,
Expand Down Expand Up @@ -587,11 +586,10 @@ def prepare_metadata(self) -> None:
"""
assert self.source_dir

with indent_log():
if self.editable and self.permit_editable_wheels:
self.metadata_directory = self._generate_editable_metadata()
else:
self.metadata_directory = self._generate_metadata()
if self.editable and self.permit_editable_wheels:
self.metadata_directory = self._generate_editable_metadata()
else:
self.metadata_directory = self._generate_metadata()

# Act on the newly generated metadata, based on the name and version.
if not self.name:
Expand Down

0 comments on commit 3799208

Please sign in to comment.