Skip to content

Commit

Permalink
feat(): Add logs for pip environment when installing
Browse files Browse the repository at this point in the history
  • Loading branch information
gutsytechster committed May 20, 2020
1 parent d4cd5b9 commit 4e87ecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/3166.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Logs information about pip environment when installing a package.
2 changes: 2 additions & 0 deletions src/pip/_internal/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
from pip._internal.utils.misc import (
ensure_dir,
get_installed_version,
get_pip_version,
protect_pip_from_modification_on_windows,
write_output,
)
Expand Down Expand Up @@ -249,6 +250,7 @@ def run(self, options, args):

install_options = options.install_options or []

logger.debug("Using {}".format(get_pip_version()))
options.use_user_site = decide_user_install(
options.use_user_site,
prefix_path=options.prefix_path,
Expand Down

0 comments on commit 4e87ecd

Please sign in to comment.