Replace pip with uv pip.
A simple script to replace pip
with uv pip
. Note that pip
and uv pip
have many differences.
Although pip maintainers are strongly against providing pip
-> uv pip
alias, it's still valuable in several use cases, especially in the CI service (see below).
When using cibuildwheel, the hardcoded pip install
is called when testing a wheel.
There is no way to replace pip install
with uv pip install
on the user side.
Installing replace-pip-with-uv-pip
is a workaround:
# in pyproject.toml:
[tool.cibuildwheel]
before-test = ["python -m pip install replace-pip-with-uv-pip"]