Skip to content

fix(uv): skip build-backend warning for in-tree backends (#20128) - #20173

Closed
beast-ofcourse wants to merge 1 commit into
astral-sh:mainfrom
beast-ofcourse:fix/in-tree-backend-warning
Closed

fix(uv): skip build-backend warning for in-tree backends (#20128)#20173
beast-ofcourse wants to merge 1 commit into
astral-sh:mainfrom
beast-ofcourse:fix/in-tree-backend-warning

Conversation

@beast-ofcourse

Copy link
Copy Markdown

Summary

When using uv build with an in-tree build backend (one that uses backend-path in [build-system]), a warning is shown even though the in-tree backend wraps uv_build intentionally.

Example:

warning: `dpsprep` defines settings for `uv_build` in `tool.uv.build-backend`,
but uses `helpers.build_backend` as build backend instead

Change

Skip the build-backend mismatch warning when backend-path is set in [build-system], since that indicates an in-tree backend wrapping uv_build on purpose.

Closes #20128

…0128)

When backend-path is set in pyproject.toml's [build-system], the
build backend is an in-tree wrapper that intentionally uses a
different name than uv_build. Skip the warning in this case.

Closes astral-sh#20128
@zanieb

zanieb commented Jul 7, 2026

Copy link
Copy Markdown
Member

Please de-duplicate your pull requests, e.g., this is already open at #20153

@zanieb zanieb closed this Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning when using uv_build from an in-tree backend

2 participants