Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show install progress when using --progress-bar=raw #12601

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

joeyballentine
Copy link

@joeyballentine joeyballentine commented Mar 27, 2024

This PR is a follow-up to #11508 / #12586 which adds machine-readable install progress outputs.

Right now, unless pip is uninstalling a package to upgrade it, pip does not output any progress information for the actual install process. This means that any GUI wrapping pip cannot accurately display the current progress of the install. For example, if I wanted to be able to display "installing opencv-python", I would have no idea when opencv-python is actually installing. The best I would be able to do would be to display an indeterminate progress spinner and maybe guess where the install progress is at based on the uninstalling messages.

So, this PR solves that issue by outputting the current install progress when the --progress-bar setting is set to "raw". I did try to add a regular progress bar to this as well, but due to the extra logging it does sometimes (like during uninstalls), a regular progress bar is not a good fit for this specific feature. Besides, this is only useful for those who want to display extra information that they cannot currently get from pip's output (which is why someone would be using the "raw" option anyway).

Example screenshot:
image

yes i installed mypy locally to test this, so it should finally pass ci
@arenasys
Copy link
Contributor

arenasys commented Mar 27, 2024

Currently need to install packages individually to get around this, this PR would make wrapping pip alot more efficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants