numpy / 1.22.0 / reference / generated / numpy.distutils.ccompiler.ccompiler_spawn.html /

numpy.distutils.ccompiler.CCompiler_spawn

distutils.ccompiler. CCompiler_spawn ( self, cmd, display=None, env=None ) [source]

Execute a command in a sub-process.

Parameters
cmd str

The command to execute.

display str or sequence of str, optional

The text to add to the log file kept by numpy.distutils. If not given, display is equal to cmd.

env: a dictionary for environment variables, optional
Returns
None
Raises
DistutilsExecError

If the command failed, i.e. the exit status was not 0.

© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.22/reference/generated/numpy.distutils.ccompiler.CCompiler_spawn.html