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

'pip wheel' should download wheels, when it finds them #1524

Merged
merged 2 commits into from
Feb 2, 2014
Merged

'pip wheel' should download wheels, when it finds them #1524

merged 2 commits into from
Feb 2, 2014

Conversation

qwcode
Copy link
Contributor

@qwcode qwcode commented Feb 1, 2014

fix for #1310 (and indirectly for #1111)

still need to handle #855 and in general work on clearing up pip's overwrite/"exists_action" behavior.


# a download dir is specified and not already downloaded
if download_dir and not already_downloaded:
content_type = mimetypes.guess_type(link_path)[0]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if link_path has a hash fragment, needs a hash confirmation here. will add that.

I'm tempted to consolidate unpack_http_url and unpack_file_url, but concerned it will get too complex.

Copy link
Contributor

Choose a reason for hiding this comment

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

When I was trying to grok pip's code, it seemed to me that 'download a resource' and 'extract it' were really poorly separated tasks, where it would be useful to have them as clearly separate steps.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Keep in mind that in order to do recursive downloads (and pip install --download does that), the packages have to be extracted/unpacked so the metadata can be inspected for dependencies.

I think a good time to try to do more separation, might be with pip download in #906

qwcode added a commit that referenced this pull request Feb 2, 2014
'pip wheel' should download wheels, when it finds them
@qwcode qwcode merged commit 386d1b9 into pypa:develop Feb 2, 2014
qwcode added a commit that referenced this pull request Feb 5, 2014
@qwcode qwcode added this to the 1.5.3 milestone Feb 20, 2014
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants