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

Dedent late download logs #8722

Merged
merged 1 commit into from
Sep 16, 2020
Merged

Dedent late download logs #8722

merged 1 commit into from
Sep 16, 2020

Conversation

McSinyx
Copy link
Contributor

@McSinyx McSinyx commented Aug 6, 2020

This fixes GH-8721. The news file is trivial because the behavior described in the issue has never made it into any release.

@uranusjr uranusjr added this to the 20.3 milestone Aug 10, 2020
@McSinyx McSinyx force-pushed the late-dl-indent branch 5 times, most recently from 4407b8b to 534976d Compare August 17, 2020 13:49
@McSinyx
Copy link
Contributor Author

McSinyx commented Aug 18, 2020

May I have a review from you as well, @uranusjr?

@uranusjr
Copy link
Member

The dedents look good to me, but I feel I’m not qualified to give approval since I’m not familiar with the code around the area to know the possible nuances.

@McSinyx
Copy link
Contributor Author

McSinyx commented Aug 19, 2020

Thanks, @uranusjr. I'll wait for a little longer then, this is not something urgent anyway.

@McSinyx
Copy link
Contributor Author

McSinyx commented Sep 6, 2020

Ping gently to attract another review from a maintainer.

@@ -515,55 +515,51 @@ def prepare_linked_requirements_more(self, reqs, parallel_builds=False):

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we have some reqs to download, we might want to have a log line explaining that we are finishing the downloads here with an other indent_log() ?

This would transform:

$ pip --use-feature=2020-resolver --use-feature=fast-deps  download scipy
WARNING: pip is using lazily downloaded wheels using HTTP range requests to obtain dependency information. This experimental feature is enabled through --use-feature=fast-deps and it is not ready for production.
Collecting scipy
  Obtaining dependency information from scipy 1.5.2
Collecting numpy>=1.14.5
  Obtaining dependency information from numpy 1.19.2
Downloading scipy-1.5.2-cp38-cp38-manylinux1_x86_64.whl (25.7 MB)
   |████████████████████████████████| 25.7 MB 8.5 MB/s 
Downloading numpy-1.19.2-cp38-cp38-manylinux2010_x86_64.whl (14.5 MB)
   |████████████████████████████████| 14.5 MB 25.3 MB/s 
Saved ./scipy-1.5.2-cp38-cp38-manylinux1_x86_64.whl
Saved ./numpy-1.19.2-cp38-cp38-manylinux2010_x86_64.whl
Successfully downloaded scipy numpy

to

$ pip --use-feature=2020-resolver --use-feature=fast-deps  download scipy
WARNING: pip is using lazily downloaded wheels using HTTP range requests to obtain dependency information. This experimental feature is enabled through --use-feature=fast-deps and it is not ready for production.
Collecting scipy
  Obtaining dependency information from scipy 1.5.2
Collecting numpy>=1.14.5
  Obtaining dependency information from numpy 1.19.2
Completing dependencies download
  Downloading scipy-1.5.2-cp38-cp38-manylinux1_x86_64.whl (25.7 MB)
     |████████████████████████████████| 25.7 MB 8.5 MB/s 
  Downloading numpy-1.19.2-cp38-cp38-manylinux2010_x86_64.whl (14.5 MB)
     |████████████████████████████████| 14.5 MB 25.3 MB/s 
Saved ./scipy-1.5.2-cp38-cp38-manylinux1_x86_64.whl
Saved ./numpy-1.19.2-cp38-cp38-manylinux2010_x86_64.whl
Successfully downloaded scipy numpy

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! Would it be OK to delay to GH-8771? I have no problem implemented what you're suggesting though (nor I have any strong opinion favoring either the this PR's current implementation or your suggestion).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be OK to delay to GH-8771?

Sure :)

@pradyunsg pradyunsg added the type: enhancement Improvements to functionality label Sep 13, 2020
@xavfernandez xavfernandez merged commit 33890bf into pypa:master Sep 16, 2020
@McSinyx McSinyx deleted the late-dl-indent branch September 16, 2020 13:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fast-deps] Late download logs are over indented
4 participants