Skip to content

Commit e48b0b6

Browse files
Distinguish between pyodide-build and pypa/build
1 parent c0c1dea commit e48b0b6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cibuildwheel/frontend.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import dataclasses
23
import shlex
34
import typing
@@ -37,6 +38,16 @@ def options_summary(self) -> str | dict[str, str]:
3738

3839

3940
def _get_verbosity_flags(level: int, frontend: BuildFrontendName) -> list[str]:
41+
# The pseudo build-frontend provided by pyodide-build does not yet support
42+
# tuning its verbosity level, see https://github.com/pyodide/pyodide-build/issues/222
43+
# We can use the "PYODIDE" env var to detect if we're running in that context.
44+
if os.environ.get("PYODIDE") == "1":
45+
if level != 0:
46+
log.warning(
47+
f"build_verbosity {level} is not supported for Pyodide builds. Ignoring."
48+
)
49+
return []
50+
4051
if level < 0:
4152
if frontend == "pip":
4253
return ["-" + -level * "q"]

0 commit comments

Comments
 (0)