MCPcopy Index your code
hub / github.com/python/cpython / call

Function call

Platforms/emscripten/__main__.py:188–208  ·  view source on GitHub ↗

Execute a command. If 'quiet' is true, then redirect stdout and stderr to a temporary file.

(command, *, quiet, **kwargs)

Source from the content-addressed store, hash-verified

186
187
188def call(command, *, quiet, **kwargs):
189 """Execute a command.
190
191 If 'quiet' is true, then redirect stdout and stderr to a temporary file.
192 """
193 print("❯", " ".join(map(str, command)))
194 if not quiet:
195 stdout = None
196 stderr = None
197 else:
198 stdout = tempfile.NamedTemporaryFile(
199 "w",
200 encoding="utf-8",
201 delete=False,
202 prefix="cpython-emscripten-",
203 suffix=".log",
204 )
205 stderr = subprocess.STDOUT
206 print(f"📝 Logging output to {stdout.name} (--quiet)...")
207
208 subprocess.check_call(command, **kwargs, stdout=stdout, stderr=stderr)
209
210
211def build_platform():

Callers 7

install_emscriptenFunction · 0.70
configure_build_pythonFunction · 0.70
make_build_pythonFunction · 0.70
make_emscripten_libffiFunction · 0.70
make_mpdecFunction · 0.70
make_emscripten_pythonFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…