File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ import os
1
2
import dataclasses
2
3
import shlex
3
4
import typing
@@ -37,6 +38,16 @@ def options_summary(self) -> str | dict[str, str]:
37
38
38
39
39
40
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
+
40
51
if level < 0 :
41
52
if frontend == "pip" :
42
53
return ["-" + - level * "q" ]
You can’t perform that action at this time.
0 commit comments