-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Move unpack_file_url() out of download.py #6861
Comments
Functions in pip/src/pip/_internal/utils/misc.py Lines 727 to 732 in 1de04eb
Maybe |
I will try and submit a PR later on. |
After looking at it more, I think it would be better to move the networking/http-specific stuff out of download and into something in |
Since you were able to remove |
As a follow-on to PR #6859,
unpack_file_url()
and the functions it depends on should be moved out ofdownload.py
into a new module IMO since this function doesn't do any downloading or require network access -- just copying / unpacking on the file system:pip/src/pip/_internal/download.py
Lines 939 to 950 in 1de04eb
Does anyone have any thoughts on the name of the new module? I think it can probably be inside
utils
. It isshutil
-like (needing things likeshutil.copytree()
) and so feels higher-level thanutils/filesystem.py
.Doing this will also let us remove
wheel.py
's import dependency ondownload.py
.This is also related to issue #6813 ("Breakout
pip._internal.download
to apip._internal.network
sub-package").Posted in its original form by @cjerdonek in #6859 (comment)
The text was updated successfully, but these errors were encountered: