本文整理汇总了Python中numpy.distutils.ccompiler.CCompiler类的典型用法代码示例。如果您正苦于以下问题:Python CCompiler类的具体用法?Python CCompiler怎么用?Python CCompiler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CCompiler类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, *args, **kw):
CCompiler.__init__(self, *args, **kw)
self.distutils_vars = self.distutils_vars.clone(self._environment_hook)
self.command_vars = self.command_vars.clone(self._environment_hook)
self.flag_vars = self.flag_vars.clone(self._environment_hook)
self.executables = self.executables.copy()
for e in self._executable_keys:
if e not in self.executables:
self.executables[e] = None
# Some methods depend on .customize() being called first, so
# this keeps track of whether that's happened yet.
self._is_customised = False
示例2: get_version
def get_version(self, force=False, ok_status=[0]):
assert self._is_customised
version = CCompiler.get_version(self, force=force, ok_status=ok_status)
if version is None:
raise CompilerNotFound()
return version
示例3: get_version
def get_version(self, force=False, ok_status=[0]):
assert self._is_customised
return CCompiler.get_version(self, force=force, ok_status=ok_status)