-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add feature flag to not install the latest version of pip #7522
Conversation
Just in case the new version of pip breaks too many projects, we can downgrade easily.
@@ -1581,6 +1581,7 @@ def add_features(sender, **kwargs): | |||
INDEX_FROM_HTML_FILES = 'index_from_html_files' | |||
DONT_CREATE_INDEX = 'dont_create_index' | |||
USE_NEW_PIP_RESOLVER = 'use_new_pip_resolver' | |||
DONT_INSTALL_LATEST_PIP = 'dont_install_latest_pip' |
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.
Instead of _LATEST
in the name, I'd use one that communicates the resolver. Like, DONT_USE_NEW_PIP_RESOLVER
that follow the same pattern than the above feature flag.
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.
This is so we can re-use this in the future
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.
Makes sense to me. I know this code will eventually be stale, but the name isn't a huge issue, and the comment in the code makes it clear for now at least.
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.
This seems useful to have for the pip release, so I'm 👍 on shipping to have a quick way to avoid breakage if needed.
@@ -1581,6 +1581,7 @@ def add_features(sender, **kwargs): | |||
INDEX_FROM_HTML_FILES = 'index_from_html_files' | |||
DONT_CREATE_INDEX = 'dont_create_index' | |||
USE_NEW_PIP_RESOLVER = 'use_new_pip_resolver' | |||
DONT_INSTALL_LATEST_PIP = 'dont_install_latest_pip' |
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.
Makes sense to me. I know this code will eventually be stale, but the name isn't a huge issue, and the comment in the code makes it clear for now at least.
Just in case the new version of pip breaks too many projects,
we can downgrade easily.