-
Notifications
You must be signed in to change notification settings - Fork 3.1k
attempt an optimistic localhost-only search for "==" requirements #2114
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
Conversation
3d8fc1f
to
ec5fd8c
Compare
ec5fd8c
to
2cdf43a
Compare
All tests pass, after rebasing onto #2116 . |
+1 - along with the new default caching mechanism, this is very useful for projects! |
I think passing |
@piotr Yes, and then it fails if anything is not yet cached. The objective On Tue, Nov 25, 2014 at 9:59 AM, Piotr Dobrogost [email protected]
Buck Golemon |
@bukzor
|
@@ -1,3 +1,2 @@ | |||
[egg_info] | |||
tag_build = dev | |||
tag_svn_revision = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this related to this change or was it committed by accident?
This seems useful as it will speed things up when you pin with == but not fail if you don't like it would with |
Can you fix the merge conflicts? I'd love to play with this. |
…equals Conflicts: pip/index.py
@msabramo: merged. The conflict was trivial, an unrelated edit on the next line. |
Cool, thanks! There's a couple of test failures on Python 3, but I still will probably pull this down and play with it. |
How do I test this? I did A repeat of that command didn't fetch it but that was seeming because of the caching and I saw the same behavior on the |
You have to use --wheel-dir iirc --phone is hard.
|
Shoot I need to look at this again. Quite similar to #2493 - right? Sorry, browsing on phone so hard to check in detail. |
In 2493 you write
whereas here there's this statement:
Looking briefly on this PR it seems that found locally above refers also to packages available locally for install and not only installed ones. If that's the case then features in both PRs are different. Btw, skipping pypi if there's locally available package for install would be nice to have. #2090 asks about similar feature but there there's no restriction to requirements with |
Shouldn't this feature work also for |
Going to close this, we've decided in another PR that trying to do this is not something we generally want to do. It's an optimization and one that's likely to break in unexpected ways, especially with the new PEP 440 meaning of |
link? On Mon, Apr 6, 2015 at 9:15 PM, Donald Stufft [email protected]
Buck Golemon |
This is mostly for discussion.
In our very large project (>300 requirements) we're finding that the round-trips to the pypi server make the pip portion of our build frustratingly slow, even though we've ensured that all wheels are built and available on local disk.
Here I attempt to leverage the fact that there's no need to talk to the pypi server if we have a == requirement and a match is found locally.
There's two parts of this implementation that are (probably) objectionable, and I'd like advise on how to implement them more cleanly:
On the other hand, if you don't mind these problems as much as I do, don't let me stop you from pulling :)