Fix docs for disabling build isolation with uv sync (#6674)

Self-explanatory
This commit is contained in:
Karim Abou Zeid
2024-08-27 14:49:59 +02:00
committed by GitHub
parent 563e292c14
commit 5ef0375204
+4 -1
View File
@@ -274,6 +274,9 @@ dependencies = []
[project.optional-dependencies]
build = ["setuptools", "cython"]
compile = ["cchardet"]
[tool.uv]
no-build-isolation-package = ["cchardet"]
```
Given the above, a user would first sync the `build` dependencies:
@@ -304,7 +307,7 @@ $ uv sync --extra build --extra compile
```
Some packages, like `cchardet`, only require build dependencies for the _installation_ phase of
`uv sync`. Others, like `flash-atten`, require their build dependencies to be present even just to
`uv sync`. Others, like `flash-attn`, require their build dependencies to be present even just to
resolve the project's lockfile during the _resolution_ phase.
In such cases, the build dependencies must be installed prior to running any `uv lock` or `uv sync`