Skip to content

Commit

Permalink
Fix docs for disabling build isolation with uv sync (#6674)
Browse files Browse the repository at this point in the history
Self-explanatory
  • Loading branch information
kabouzeid authored Aug 27, 2024
1 parent 563e292 commit 5ef0375
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/concepts/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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`
Expand Down

0 comments on commit 5ef0375

Please sign in to comment.