Skip to content

Commit a7c3e8c

Browse files
committed
..
1 parent 7f70140 commit a7c3e8c

File tree

2 files changed

+36
-36
lines changed

2 files changed

+36
-36
lines changed

docs/concepts/projects/config.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ with the default build system.
116116
the presence of a `[build-system]` table is not required in other packages. For legacy reasons,
117117
if a build system is not defined, then `setuptools.build_meta:__legacy__` is used to build the
118118
package. Packages you depend on may not explicitly declare their build system but are still
119-
installable. Similarly, if you add a dependency on a local package or install it with `uv pip`,
120-
uv will always attempt to build and install it.
119+
installable (e.g., the default behavior for [installing path sources](./dependencies.md#installing-path-sources)).
120+
Similarly, if you add a dependency on a local package or install it with `uv pip`, uv will
121+
always attempt to build and install it.
121122

122123
### Build system options
123124

docs/concepts/projects/dependencies.md

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -408,53 +408,52 @@ Or, a path to a project directory:
408408
$ uv add ~/projects/bar/
409409
```
410410

411-
!!! important
411+
### Path dependency installation
412412

413-
An [editable installation](#editable-dependencies) is not used for path dependencies by
414-
default. An editable installation may be requested for project directories:
413+
An [editable installation](#editable-dependencies) is not used for path dependencies by default. An
414+
editable installation may be requested for project directories:
415415

416-
```console
417-
$ uv add --editable ../projects/bar/
418-
```
416+
```console
417+
$ uv add --editable ../projects/bar/
418+
```
419419

420-
Which will result in a `pyproject.toml` with:
420+
Which will result in a `pyproject.toml` with:
421421

422-
```toml title="pyproject.toml"
423-
[project]
424-
dependencies = ["bar"]
422+
```toml title="pyproject.toml"
423+
[project]
424+
dependencies = ["bar"]
425425

426-
[tool.uv.sources]
427-
bar = { path = "../projects/bar", editable = true }
428-
```
426+
[tool.uv.sources]
427+
bar = { path = "../projects/bar", editable = true }
428+
```
429429

430-
Similarly, if a project is marked as a [non-package](./config.md#build-systems), but you'd
431-
like to install it in the environment as a package, set `package = true` on the source:
430+
Similarly, if a project is marked as a [non-package](./config.md#build-systems), but you'd like to
431+
install it in the environment as a package, set `package = true` on the source:
432432

433-
```toml title="pyproject.toml"
434-
[project]
435-
dependencies = ["bar"]
433+
```toml title="pyproject.toml"
434+
[project]
435+
dependencies = ["bar"]
436436

437-
[tool.uv.sources]
438-
bar = { path = "../projects/bar", package = true }
439-
```
437+
[tool.uv.sources]
438+
bar = { path = "../projects/bar", package = true }
439+
```
440440

441-
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
442-
specification](./config.md#build-systems). If you'd like to avoid installing it, set
443-
`package = false` on the source:
441+
If the dependency project is not marked as a non-package and no value is set for `package` on the
442+
source, the default behavior is to install it as a package, even if it lacks a
443+
[[build-system] table](./config.md#build-systems). If you'd like to avoid installing it, set
444+
`package = false` on the source:
444445

445-
```toml title="pyproject.toml"
446-
[project]
447-
dependencies = ["bar"]
446+
```toml title="pyproject.toml"
447+
[project]
448+
dependencies = ["bar"]
448449

449-
[tool.uv.sources]
450-
bar = { path = "../projects/bar", package = false }
451-
```
450+
[tool.uv.sources]
451+
bar = { path = "../projects/bar", package = false }
452+
```
452453

453-
This will override the default behavior and the path dependency's own `tool.uv.package`
454-
value.
454+
This will override the default behavior and the path dependency's own `tool.uv.package` value.
455455

456-
For multiple packages in the same repository, [_workspaces_](./workspaces.md) may be a better
457-
fit.
456+
For multiple packages in the same repository, [_workspaces_](./workspaces.md) may be a better fit.
458457

459458
### Workspace member
460459

0 commit comments

Comments
 (0)