ensurepip in linux distros
Can anyone summarize the state of ensurepip for the major linux distros. Do any currently include a version that leaves ensurepip intact? If not, will any? Moreover, would any ever also bootstrap pip for you? I'm not asking out of interest in wanting it, more to understand for the sake of editing pip and PyPUG docs. thanks, Marcus
On 4 September 2015 at 15:02, Marcus Smith <qwcode@gmail.com> wrote:
Can anyone summarize the state of ensurepip for the major linux distros.
Do any currently include a version that leaves ensurepip intact? If not, will any? Moreover, would any ever also bootstrap pip for you?
python in Fedora depends on python-pip, and then bundles the system version back up with rewheel for installation into Python virtual environments. With RPM gaining weak dependency support, that dependency will potentially shift from a Requires to a Recommends, but that will still mean pip and ensurepip work by default. For Python 3.x on RHEL/CentOS, the EPEL Python 3.x stacks work the same way Fedora does (currently python34 only, but there'll be a python35 stack after the Fedora 23 beta is out the door and folks start working on upgrading Fedora Rawhide to Python 3.5 - with the work still needed to finish the "Python 3 as system Python" migration, we unfortunately weren't able to pursue a Python 3.5 migration at the same time) The Python 2.7 and Python 3.x Software Collections also provide pip by default. For system wide installations of Python 2.x, RHEL/CentOS require that python-pip be installed manually from EPEL, and that's unlikely to change (we'd prefer folks switch to using a more easily updated Software Collection runtime instead of running directly in the system Python). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
On 7 September 2015 at 01:37, Marcus Smith <qwcode@gmail.com> wrote:
then bundles the system version back up with rewheel for installation into Python virtual environments.
this "bundles the system version back up" step happens when?
When ensurepip.bootstrap() runs - Fedora's system Python is patched to do that rather than install from the embedded wheel files (technically it falls back to the latter code path, but we omit those from the Fedora system Python package and include a runtime dependency on python-pip and python-setuptools instead).
which fedora version did this start?
I think it was F21 (Dec 2014), may have been F22 (May 2015). Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia
participants (2)
-
Marcus Smith
-
Nick Coghlan