Skip to content

Commit

Permalink
Fix the build_frontend usage in pyodide build
Browse files Browse the repository at this point in the history
  • Loading branch information
joerick committed Sep 19, 2023
1 parent 97f25f0 commit 8ddc165
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cibuildwheel/pyodide.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from .util import (
CIBW_CACHE_PATH,
AlreadyBuiltWheelError,
BuildFrontendConfig,
BuildSelector,
NonPlatformWheelError,
call,
Expand Down Expand Up @@ -212,8 +213,9 @@ def build(options: Options, tmp_path: Path) -> None:

for config in python_configurations:
build_options = options.build_options(config.identifier)
build_frontend = build_options.build_frontend or BuildFrontendConfig("build")

if build_options.build_frontend == "pip":
if build_frontend.name == "pip":
print("The pyodide platform doesn't support pip frontend", file=sys.stderr)
sys.exit(1)
log.build_start(config.identifier)
Expand Down Expand Up @@ -274,6 +276,7 @@ def build(options: Options, tmp_path: Path) -> None:
log.step("Building wheel...")

extra_flags = split_config_settings(build_options.config_settings, "build")
extra_flags += build_frontend.args

if not 0 <= build_options.build_verbosity < 2:
msg = f"build_verbosity {build_options.build_verbosity} is not supported for build frontend. Ignoring."
Expand Down

0 comments on commit 8ddc165

Please sign in to comment.