Skip to content

Move bundled build backend selection to debug output - #20757

Merged
zanieb merged 1 commit into
astral-sh:release/0.12.0from
zaniebot:zb/build-backend-debug-logging
Jul 28, 2026
Merged

zanieb merged 1 commit into
astral-sh:release/0.12.0from
zaniebot:zb/build-backend-debug-logging

Conversation

@zaniebot

Copy link
Copy Markdown
Contributor

uv build currently appends (uv build backend) to each progress line when it uses the bundled backend, exposing an implementation detail and repeating it for source distributions and wheels. Log backend selection once at debug level instead, keeping ordinary build progress consistent across direct and PEP 517 builds.

@zanieb

zanieb commented Jul 27, 2026

Copy link
Copy Markdown
Member

In #19197 I noticed these changing in the snapshots and don't think these make sense as non-debug messages to users and would prefer to reduce the visibility.

@zaniebot
zaniebot force-pushed the zb/build-backend-debug-logging branch from 9d23a5a to 66c6d3e Compare July 27, 2026 22:08
@zaniebot
zaniebot changed the base branch from main to release/0.12.0 July 27, 2026 22:08
@zanieb
zanieb requested a review from konstin July 27, 2026 22:09
@zanieb
zanieb marked this pull request as ready for review July 27, 2026 22:09
@astral-sh-bot

This comment has been minimized.

@konstin konstin added the enhancement New feature or improvement to existing functionality label Jul 28, 2026
@konstin

konstin commented Jul 28, 2026

Copy link
Copy Markdown
Member

This isn't breaking we can directly ship this to main.

@konstin konstin added this to the v0.12.0 milestone Jul 28, 2026
@zaniebot
zaniebot force-pushed the zb/build-backend-debug-logging branch from 66c6d3e to cd31c44 Compare July 28, 2026 14:38
@zanieb
zanieb merged commit 98d365e into astral-sh:release/0.12.0 Jul 28, 2026
58 checks passed
@zanieb

zanieb commented Jul 28, 2026

Copy link
Copy Markdown
Member

(Just trying to reduce merge conflicts on the release branch since I know these snapshots changed there too)

@konstin konstin mentioned this pull request Jul 28, 2026
zanieb added a commit that referenced this pull request Jul 28, 2026
`uv build` currently appends `(uv build backend)` to each progress line
when it uses the bundled backend, exposing an implementation detail and
repeating it for source distributions and wheels. Log backend selection
once at debug level instead, keeping ordinary build progress consistent
across direct and PEP 517 builds.

Co-authored-by: Zanie Blue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants