File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
import dataclasses
2
+ import os
2
3
import shlex
3
4
import typing
4
5
from collections .abc import Sequence
@@ -37,6 +38,14 @@ 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 (f"build_verbosity { level } is not supported for Pyodide builds. Ignoring." )
47
+ return []
48
+
40
49
if level < 0 :
41
50
if frontend == "pip" :
42
51
return ["-" + - level * "q" ]
You can’t perform that action at this time.
0 commit comments