mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Add docs
This commit is contained in:
parent
8ae8af4051
commit
d40fd5644e
1 changed files with 15 additions and 0 deletions
|
@ -438,6 +438,21 @@ $ uv add ~/projects/bar/
|
|||
bar = { path = "../projects/bar", package = true }
|
||||
```
|
||||
|
||||
If the project is not marked as a non-package and no value is set for `package` on the source, the default behavior is to install it as a package, even if it lacks a [build
|
||||
specification](./config.md#build-systems). If you'd like to avoid installing it, set
|
||||
`package = false` on the source:
|
||||
|
||||
```toml title="pyproject.toml"
|
||||
[project]
|
||||
dependencies = ["bar"]
|
||||
|
||||
[tool.uv.sources]
|
||||
bar = { path = "../projects/bar", package = false }
|
||||
```
|
||||
|
||||
This will override the default behavior and the path dependency's own `tool.uv.package`
|
||||
value.
|
||||
|
||||
For multiple packages in the same repository, [_workspaces_](./workspaces.md) may be a better
|
||||
fit.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue