Skip to content

Commit

Permalink
Reduce the amount of calls to pip and the number of tempfiles in batc…
Browse files Browse the repository at this point in the history
…h_install. (pypa#5301)

* Reduce the amount of calls to pip and the number of temp files in batch_install.

* Add logic to read the progress of the install in realtime from pip and stop using progress bar.

* refactor based on PR feedback.
  • Loading branch information
matteius authored and yeisonvargasf committed Nov 18, 2022
1 parent 42cc878 commit f75d957
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 154 deletions.
9 changes: 0 additions & 9 deletions pipenv/cli/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,15 +495,6 @@ def callback(ctx, param, value):
def setup_verbosity(ctx, param, value):
if not value:
return
import logging

loggers = ("pip",)
if value == 1:
for logger in loggers:
logging.getLogger(logger).setLevel(logging.INFO)
elif value == -1:
for logger in loggers:
logging.getLogger(logger).setLevel(logging.CRITICAL)
ctx.ensure_object(State).project.s.PIPENV_VERBOSITY = value


Expand Down
Loading

0 comments on commit f75d957

Please sign in to comment.