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
Decouple ensurepip from pip's internals using runpy #82843
Comments
Inspired by #16782 (comment) This changes ensurepip's current assumption that pip would expose a "main" function, which can be invoked to run pip. I've selected all actively supported Python versions for this ticket, since this patch should be backported to all Python versions, to make it robust to internal changes within pip. |
Note that the patch uses the fact that:
will print:
|
Can you explain how this would be rolled out? Does this mean as of a planned release of pip the current ensurepip would break? If so, when? Is 2.7 still supported with that version of pip and, if so, have you tested the PR with it? |
On Tue, 5 Nov 2019 at 4:30 PM, Ned Deily <report@bugs.python.org> wrote:
This, as in? If you're referring to this specific change, I don't think ensurepip only installs the bundled wheel it already has, into the However, when we bump up to pip 19.3 [1], we'd need to be updating the This change ensures that ensurepip is robust to changes in the location of [1]: IIUC we try to keep CPython's bundled wheel in sync with latest) Does this mean as of a planned release of pip the current ensurepip would
Yes. pip 19.3 made a change and as can be seen in the PR for that (sorry, If so, when? That's already been released. 🙃 Is 2.7 still supported with that version of pip and, if so, have you tested
Yes, pip will support 2.7 at least until CPython does (and likely longer).
|
While it's not a major issue in CPython, I can say that being tightly coupled to pip internals is a major in Fedora which updates pip frequently and tries to support multiple pip versions. |
Miro Hrončok: "I wasn't even hoping for a backport. Thanks!" ( #18901 (comment) ) pip wheel files are still updated in stable 3.7 and 3.8 branches. Example in August 2018 in 3.7: |
2.7 is no longer supported in CPython. So I will not backport the fix to 2.7. And I removed the 2.7 from versions of this issue. |
Thanks Pradyun Gedam and Miro Hrončok for the fix. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: