Another approach to the uv installation question
Don't get clever about it at all, instead make uv on PATH a hard requirement.
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ To build Linux, macOS, and Windows wheels using GitHub Actions, create a `.githu
|
||||
`package-dir: .`, `output-dir: wheelhouse` and `config-file: ''`
|
||||
locations (those values are the defaults). You can also pass a
|
||||
comma-separated list of extras to install additional packages.
|
||||
For example, `extras: "uv"` to install UV into the virtual environment.
|
||||
For example, `extras: "uv"` to make uv available for cibuildwheel to use.
|
||||
|
||||
!!! tab "pipx"
|
||||
The GitHub Actions runners have pipx installed, so you can easily build in
|
||||
|
||||
+13
-7
@@ -470,13 +470,19 @@ Default: `build`
|
||||
|
||||
Choose which build frontend to use.
|
||||
|
||||
You can use "build\[uv\]", which will use an external [uv][] everywhere
|
||||
possible, both through `--installer=uv` passed to build, as well as when making
|
||||
all build and test environments. This will generally speed up cibuildwheel.
|
||||
Make sure you have an external uv on Windows and macOS, either by
|
||||
pre-installing it, or installing cibuildwheel with the `uv` extra, which is
|
||||
possible by manually passing `cibuildwheel[uv]` to installers or by using the
|
||||
`extras` option in the [cibuildwheel action](ci-services.md#github-actions).
|
||||
You can use "build\[uv\]", which will use [uv][] everywhere possible, both
|
||||
through `--installer=uv` passed to build, as well as when making all build and
|
||||
test environments. This will generally speed up cibuildwheel.
|
||||
|
||||
When using `build[uv]`, ensure uv is available on PATH. You can do this by:
|
||||
|
||||
- Pre-installing uv (e.g., via `pip install uv` or using `astral-sh/setup-uv`
|
||||
in GitHub Actions)
|
||||
- Installing cibuildwheel with the `uv` extra by manually passing
|
||||
`cibuildwheel[uv]` to installers
|
||||
- Using the `extras: "uv"` option in the [cibuildwheel action](ci-services.md#github-actions),
|
||||
which installs uv in an isolated environment
|
||||
|
||||
uv currently does not support iOS or musllinux on s390x, ppc64le and riscv64.
|
||||
|
||||
On Android and Pyodide, the "pip" frontend is not supported.
|
||||
|
||||
Reference in New Issue
Block a user