class documentation

class _Distutils:

Known subclasses: numpy.distutils.ccompiler_opt.CCompilerOpt

View In Hierarchy

A helper class that provides a collection of fundamental methods implemented in a top of Python and NumPy Distutils.

The idea behind this class is to gather all methods that it may need to override in case of reuse 'CCompilerOpt' in environment different than of what NumPy has.

Parameters

ccompiler : CCompiler
The generate instance that returned from distutils.ccompiler.new_compiler().
Static Method dist​_error Raise a compiler error
Static Method dist​_fatal Raise a distutils error
Static Method dist​_load​_module Load a module from file, required by the abstract class '_Cache'.
Static Method dist​_log Print a console message
Static Method ​_dist​_str Return a string to print by log and errors.
Static Method ​_dist​_test​_spawn Undocumented
Method __init__ Undocumented
Method ​_dist​_test​_spawn​_paths Fix msvc SDK ENV path same as distutils do without it we get c1: fatal error C1356: unable to find mspdbcore.dll
Method dist​_compile Wrap CCompiler.compile()
Method dist​_info No summary
Method dist​_test Return True if 'CCompiler.compile()' able to compile a source file with certain flags.
Class Variable ​_dist​_warn​_regex Undocumented
Instance Variable ​_ccompiler Undocumented
Instance Variable ​_dist​_info Undocumented
@staticmethod
def dist_error(*args):
Raise a compiler error
@staticmethod
def dist_fatal(*args):
Raise a distutils error
@staticmethod
def dist_load_module(name, path):
Load a module from file, required by the abstract class '_Cache'.
@staticmethod
def dist_log(*args, stderr=False):
Print a console message
@staticmethod
def _dist_str(*args):
Return a string to print by log and errors.
@staticmethod
def _dist_test_spawn(cmd, display=None):

Undocumented

def __init__(self, ccompiler):

Undocumented

def _dist_test_spawn_paths(self, cmd, display=None):
Fix msvc SDK ENV path same as distutils do without it we get c1: fatal error C1356: unable to find mspdbcore.dll
def dist_compile(self, sources, flags, ccompiler=None, **kwargs):
Wrap CCompiler.compile()
def dist_info(self):
Return a tuple containing info about (platform, compiler, extra_args), required by the abstract class '_CCompiler' for discovering the platform environment. This is also used as a cache factor in order to detect any changes happening from outside.
def dist_test(self, source, flags, macros=[]):
Return True if 'CCompiler.compile()' able to compile a source file with certain flags.
_dist_warn_regex =

Undocumented

_ccompiler =

Undocumented

_dist_info =

Undocumented