[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: Thanks Pradyun Gedam and Miro Hrončok for the fix. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington
miss-islington added the comment: New changeset 212acf544a41a983aea7166d43d8dfe9a8296655 by Miss Islington (bot) in branch '3.8': bpo-38662: ensurepip invokes pip via runpy (GH-18901) https://github.com/python/cpython/commit/212acf544a41a983aea7166d43d8dfe9a8296655 -- _

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington
miss-islington added the comment: New changeset 8d5c958ddebbb96c2de5d58da4c7aa1790629cf9 by Miss Islington (bot) in branch '3.7': bpo-38662: ensurepip invokes pip via runpy (GH-18901) https://github.com/python/cpython/commit/8d5c958ddebbb96c2de5d58da4c7aa1790629cf9 -- _

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: > Yes, pip will support 2.7 at least until CPython does (and likely longer). 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. -- ___

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: Miro Hrončok: "I wasn't even hoping for a backport. Thanks!" ( https://github.com/python/cpython/pull/18901#issuecomment-597324810 ) pip wheel files are still updated in stable 3.7 and 3.8 branches. Example in August 2018 in 3.7: * commit c1c1a3396391dcc948d

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: 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. -- ___ Python tracker <

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
Change by STINNER Victor : -- components: +Library (Lib) versions: -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ P

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington
Change by miss-islington : -- pull_requests: +18262 pull_request: https://github.com/python/cpython/pull/18907 ___ Python tracker ___ __

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +18261 pull_request: https://github.com/python/cpython/pull/18906 ___ Python tracker

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88f82b2b9ea3514359cb6e3218121f75334063ac by Miro Hrončok in branch 'master': bpo-38662: ensurepip invokes pip via runpy (GH-18901) https://github.com/python/cpython/commit/88f82b2b9ea3514359cb6e3218121f75334063ac -- nosy: +vstinner ___

[issue38662] Decouple ensurepip from pip's internals using runpy

2020-03-10 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok nosy_count: 7.0 -> 8.0 pull_requests: +18259 pull_request: https://github.com/python/cpython/pull/18901 ___ Python tracker ___ ___

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-05 Thread Pradyun Gedam
Pradyun Gedam added the comment: On Tue, 5 Nov 2019 at 4:30 PM, Ned Deily wrote: > > Ned Deily added the comment: > > Can you explain how this would be rolled out? This, as in? If you're referring to this specific change, I don't think there's anything special needed for this change (it's ba

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-05 Thread Ned Deily
Ned Deily added the comment: 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? -- nosy: +ned.deily

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam
Pradyun Gedam added the comment: Note that the patch uses the fact that: ``` def foo(): try: raise Exception("returned") except Exception as e: print("except") return e.args[0] finally: print("finally") print(foo()) ``` will print: ``` except fi

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam
Change by Pradyun Gedam : -- keywords: +patch pull_requests: +16543 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17029 ___ Python tracker ___ __

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-01 Thread Pradyun Gedam
New submission from Pradyun Gedam : Inspired by https://github.com/python/cpython/pull/16782#discussion_r335285656 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 thi