Title: Allow ensurepip to work without bundled wheels
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: FFY00, dstufft, ncoghlan, p-ganssle, pradyunsg
Priority: normal Keywords:

Created on 2020-10-12 20:43 by FFY00, last changed 2020-10-12 20:43 by FFY00.

Messages (1)
msg378524 - (view) Author: Filipe LaĆ­ns (FFY00) * Date: 2020-10-12 20:43
Some Linux distributions, such as Debian, have guidelines against shipping things like prebuilt wheels.

Taking Debian as an example, they remove the pip and setuptools wheels and consequently break ensurepip. This also has some implications in the venv module.

As a way to fix this, I would like to propose for ensurepip to install .pth files pointing to the pip and setuptools packages in purelib/platlib.

This behavior could either be switched on by a flag in the makefile or, maybe, if the wheels are not found.

Do you think this would be a reasonable approach?
Currently, we cannot rely on the ensurepip to work. Some projects that really need it are shipping a vendored version of the module.
Date User Action Args
2020-10-12 20:43:50FFY00create