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: forcing download of wheels from PyPI #1483

Closed
brutasse opened this issue Jan 20, 2014 · 6 comments
Closed

pip wheel: forcing download of wheels from PyPI #1483

brutasse opened this issue Jan 20, 2014 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@brutasse
Copy link
Contributor

When running pip wheel against a list of requirements, pip skips packages that already have a wheel available on PyPI. I believe the skip behavior was added in 1.5.

https:/pypa/pip/blob/master/pip/wheel.py#L495

This is a slight annoyance when building a full wheel repository for using with pip --no-index --use-wheel --find-links=… because all the cool packages that provide wheels on PyPI are not available in the local wheel cache.

I wrote a wrapper script that captures pip's output and downloads existing wheels:

https://gist.github.com/brutasse/8476531#file-wheels-py-L52-L63

Could pip gain an option to force download of PyPI wheels? It would make such hacks unnecessary.

@dstufft
Copy link
Member

dstufft commented Jan 20, 2014

I believe the behavior has always been this, however I don't see any reason not to either allow an option, or just do it by default.

@brutasse
Copy link
Contributor Author

I'd be totally fine with downloading wheels by default :)

@pfmoore
Copy link
Member

pfmoore commented Jan 20, 2014

This has indeed always been the behaviour (and I agree that it's not always what's desired). I would be +1 on an option to always download. Offhand, I can't think of a reason why it shouldn't be the default, but I guess there may be people who rely on the current behaviour.

@Ivoz
Copy link
Contributor

Ivoz commented Jan 20, 2014

I can't see how you'd rely on the current behaviour, I think switching would be a lot more intuitive for the vast majority of people.

"Oh, so pip wheel stores wheels of packages for me, neat! looks in wheelhouse folder ...oh, damn, where are half the wheels for the dependencies I listed!? I wanted to do an offline install... :("

goes back and does a google search to find the SO answer explaining the extra flag you have to add, or dives into the docs to find explanation of behaviour

If we were optimistic, in the future where most [in-use] packages are providing wheels, then pip wheel would produce an [almost] empty folder.

@qwcode
Copy link
Contributor

qwcode commented Jan 21, 2014

dupe to #1310

@qwcode qwcode closed this as completed Jan 21, 2014
@qwcode
Copy link
Contributor

qwcode commented Jan 21, 2014

I agree the default should be to download the wheels, vs leaving holes in your wheelhouse.

@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

No branches or pull requests

5 participants