-
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
Docs: add instructions on config to default to new resolver #8661
Comments
This is standard pip functionality (both environment variable and config file), so yes, we should support it. I'm not sure we want to promote it, though, as I feel like it would be awfully easy for people to forget they had it set and use it in a live environment without meaning to. |
@pfmoore the point on accidental production user is fair. In case of an environment variable it seems reasonable to advice using |
We do support this. I agree that we should mention this in the testing guide, albeit with a note/caveat mentioning how this will persist after you set it. I'm happy to expect folks who do this testing (which has "don't use in prod" very clearly stated) to be cautious and aware of the fact that they have set this variable/config-file value. :) |
OK! What recommendation should we make? |
I think the easiest way to do this might be The other option is describing how you have to edit the relevant file and the format of it. |
Note that if you modify configuration using
it isn't possible to disable the resolver simply using
Instead, you'll need
I see this behavior on Fedora 30, Python 3.7 and pip 20.2. |
I can't reproduce this on my Debian machine with CPython 3.8 and pip 20.2. @akaihola, I wonder what |
@McSinyx, after running
|
Let's add this to the documentation, with a link to this bug in case people need variations/help with the variations. |
@akaihola Could you file a new issue for the behavior you're seeing? It seems like a bug in |
Some people would like to set an environment variable manually on the command line, or something in
pypi.rc
orpip.conf
, so they can tell pip to default to the new resolver #6536 #988 and test it more easily, without having to manually include--use-feature=2020-resolver
each time. Example via Twitter:@Julian in IRC logs suggested editing
pip.conf
anddaturkel
says this worked:[install]
use-feature = 2020-resolver
We should decide whether we want to support this, and then if we do, we should add a line about it to the how-to-test docs.
The text was updated successfully, but these errors were encountered: