Skip to content

Remove build backend parking breaks#11576

Closed
konstin wants to merge 1 commit intomainfrom
konsti/remove-build-backend-parking-breaks
Closed

Remove build backend parking breaks#11576
konstin wants to merge 1 commit intomainfrom
konsti/remove-build-backend-parking-breaks

Conversation

@konstin
Copy link
Member

@konstin konstin commented Feb 17, 2025

We want to make it easier for users to try the build backend, so we allow using the build backend without requiring UV_PREVIEW=1. Instead, we only print a note about the preview status of the build backend. This improves using packages with the uv build backend with other PEP 517 frontends that don't have uv's --preview flag.

Closes #11819

We want to make it easier for users to try the build backend, so we add `UV_PREVIEW=1`
@konstin konstin added the preview Experimental behavior label Feb 17, 2025
@cthoyt
Copy link
Contributor

cthoyt commented Feb 17, 2025

much appreciated!

__all__ = [
"find_uv_bin",
# PEP 517 hook `build_sdist`.
"build_sdist",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this preclude us from moving these into a separate namespace later? (as discussed elsewhere)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imo they are still preview and as such subject to change at any time, but we can also merge the PR #11478 -> #11446 first and start with uv_build directly.

Comment on lines 25 to +34
def warn_config_settings(config_settings: "Mapping[Any, Any] | None" = None) -> None:
import os
import sys

if not os.environ.get("UV_PREVIEW"):
print(
"Warning: The uv build backend is in preview. "
"Set the `UV_PREVIEW` environment variable to `1` to acknowledge.",
file=sys.stderr,
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's kind of weird to have this in warn_config_settings?

@konstin
Copy link
Member Author

konstin commented Mar 10, 2025

This was made unnecessary by the uv_build changes.

@konstin konstin closed this Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preview = true in pyproject.toml doesn't work if build backend is using a different version of uv

3 participants