Skip to content

Commit

Permalink
Move setup.py egg_info logging into run_egg_info
Browse files Browse the repository at this point in the history
  • Loading branch information
pfmoore committed Nov 14, 2018
1 parent 85e4f8e commit f06a0cb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/pip/_internal/req/req_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,6 @@ def prepare_metadata(self):
Under legacy processing, call setup.py egg-info.
"""
assert self.source_dir
if self.name:
logger.debug(
'Running setup.py (path:%s) egg_info for package %s',
self.setup_py, self.name,
)
else:
logger.debug(
'Running setup.py (path:%s) egg_info for package from %s',
self.setup_py, self.link,
)

with indent_log():
if self.use_pep517:
Expand Down Expand Up @@ -536,6 +526,16 @@ def prepare_pep517_metadata(self):
self.metadata_directory = os.path.join(metadata_dir, distinfo_dir)

def run_egg_info(self):
if self.name:
logger.debug(
'Running setup.py (path:%s) egg_info for package %s',
self.setup_py, self.name,
)
else:
logger.debug(
'Running setup.py (path:%s) egg_info for package from %s',
self.setup_py, self.link,
)
script = SETUPTOOLS_SHIM % self.setup_py
base_cmd = [sys.executable, '-c', script]
if self.isolated:
Expand Down

0 comments on commit f06a0cb

Please sign in to comment.