Add pip as a custom package via python -m ensurepip

pip is unusual among the custom packages because it ships inside CPython
itself, so it doesn't need a URL or archive. The handler bootstraps it
from the standard-library wheel via 'python3 -m ensurepip --upgrade' and
then self-upgrades to the latest version. Detection uses
'python3 -m pip --version' instead of a filesystem path.
This commit is contained in:
Claude
2026-05-18 13:54:46 +00:00
parent a4d1dfb9fb
commit a05df917f7
2 changed files with 51 additions and 5 deletions
+1
View File
@@ -110,4 +110,5 @@ CUSTOM_PACKAGES: list[dict] = [
},
{"name": "nvm"},
{"name": "pyenv"},
{"name": "pip"},
]