Skip to content

Clarify no-build docs for editable requirements - #20234

Merged
zsol merged 1 commit into
mainfrom
zsol/fix-nobuild-docs
Jul 8, 2026
Merged

Clarify no-build docs for editable requirements#20234
zsol merged 1 commit into
mainfrom
zsol/fix-nobuild-docs

Conversation

@zsol

@zsol zsol commented Jul 8, 2026

Copy link
Copy Markdown
Member

The --no-build help says resolving will not run arbitrary Python code and operations that require building distributions will fail. This conflicts with docs/pip/compatibility.md and the implementation: --no-build aliases --only-binary :all:, but uv may still build editable requirements under either option, and their build backends may execute arbitrary Python code.

This PR updates the help text to align with reality and the doc mentioned above.

@zsol
zsol requested a review from konstin July 8, 2026 10:10
@zsol
zsol marked this pull request as ready for review July 8, 2026 10:10
@zsol zsol added the documentation Improvements or additions to documentation label Jul 8, 2026
@konstin

konstin commented Jul 8, 2026

Copy link
Copy Markdown
Member

FWIW, our current behavior is buggy, we should consider "first party"/local dependencies, not editable, there is no reason while this pass

[project]
name = "foo"
version = "0.1.0"
requires-python = ">=3.14.0"
dependencies = ["bar"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv.workspace]
members = [
    "bar",
]

[tool.uv.sources]
bar = { workspace = true, editable = true }

while

bar = { workspace = true, editable = false }

fails with uv pip install -e ., or that uv pip install . fails here.

@zsol
zsol merged commit 32dc414 into main Jul 8, 2026
57 checks passed
@zsol
zsol deleted the zsol/fix-nobuild-docs branch July 8, 2026 11:36
@zsol

zsol commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

Looks like that's #12607?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants