fix: don't error when a global build-frontend is set on pyodide - #2945
Merged
Merged
Conversation
Since pypa#2609, the pyodide platform required the 'pyodide-build' frontend, but a global build-frontend setting (TOML or CIBW_BUILD_FRONTEND) overrides the platform default, so previously-working configs like build-frontend = "build" failed with a ConfigurationError. Even "default" failed, since it was mapped to "build" before the check. Resolve "default" to the platform default, and warn and use pyodide-build when another frontend is set on pyodide, matching pre-pypa#2609 behavior where the frontend name only affected verbosity flags. Assisted-by: ClaudeCode:claude-opus-4.8
agriyakhetarpal
approved these changes
Jul 23, 2026
agriyakhetarpal
left a comment
Member
There was a problem hiding this comment.
Thanks @henryiii, makes sense and sorry for the trouble! Glad we caught this before a release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This would cause many valid configuration files to break. Making this just a warning for now, maybe pip/uv could become an error in a future version. Maybe build / build[uv] could always just tap over with a warning.
I'd expect this will only matter if we introduce a new xbuild option eventually.
Currently blocking a patch release.
馃 AI text below 馃
Since #2609, the pyodide platform requires the
pyodide-buildbuild frontend. But a globalbuild-frontendsetting (in TOML orCIBW_BUILD_FRONTEND) overrides the platform default in the option cascade, so previously-working configs like a globalbuild-frontend = "build"now fail with aConfigurationErrorunless a pyodide-specific override is added. Evenbuild-frontend = "default"failed, since"default"was hard-mapped to"build"before the check.This resolves
"default"to the platform default (pyodide-buildon pyodide), and turns the mismatch error into a warning that usespyodide-buildinstead (keeping any frontendargs). That matches pre-#2609 behavior, where pyodide always ranpyodide buildand the frontend name only affected verbosity flags.Regression tests were added first and confirmed to fail without the fix.