This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Allow ensurepip to work without bundled wheels
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.10
process
Status: closed Resolution: fixed
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 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg378524 - (view) Author: Filipe Laíns (FFY00) * (Python triager) 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.
msg394054 - (view) Author: Filipe Laíns (FFY00) * (Python triager) Date: 2021-05-20 19:34
Closing as the new --with-wheel-pkg-dir option provides an alternative mechanism.
History
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86188
2021-05-20 19:34:02FFY00setstatus: open -> closed
resolution: fixed
messages: + msg394054

stage: resolved
2020-10-12 20:43:50FFY00create