本文简要介绍 python 语言中 numpy.distutils.ccompiler.CCompiler_customize
的用法。
用法:
distutils.ccompiler.CCompiler_customize(self, dist, need_cxx=0)
对编译器实例进行任何特定于平台的定制。
此方法调用
distutils.sysconfig.customize_compiler
以进行特定于平台的自定义,以及在编译 C++ 代码的情况下可选地删除标志以抑制虚假警告。- dist: 对象
这个参数不用于任何事情。
- need_cxx: 布尔型,可选
是否必须编译 C++。如果是 (True),则删除
"-Wstrict-prototypes"
选项以防止出现虚假警告。默认为假。
- None
参数:
返回:
注意:
distutils 使用的所有默认选项都可以通过以下方式提取:
from distutils import sysconfig sysconfig.get_config_vars('CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO')
相关用法
- Python numpy chararray.ndim用法及代码示例
- Python numpy chebyshev.chebsub用法及代码示例
- Python numpy chararray.nbytes用法及代码示例
- Python numpy chebyshev.chebdiv用法及代码示例
- Python numpy copy用法及代码示例
- Python numpy chararray.setflags用法及代码示例
- Python numpy chararray.flat用法及代码示例
- Python numpy can_cast用法及代码示例
- Python numpy chararray.strides用法及代码示例
- Python numpy chebyshev.cheb2poly用法及代码示例
- Python numpy chararray.view用法及代码示例
- Python numpy chebyshev.chebx用法及代码示例
- Python numpy chebyshev.chebmul用法及代码示例
- Python numpy char.strip用法及代码示例
- Python numpy c_用法及代码示例
- Python numpy cross用法及代码示例
- Python numpy chebyshev.chebroots用法及代码示例
- Python numpy copysign用法及代码示例
- Python numpy char.upper用法及代码示例
- Python numpy chararray.imag用法及代码示例
- Python numpy chararray.base用法及代码示例
- Python numpy chararray.flatten用法及代码示例
- Python numpy chararray.copy用法及代码示例
- Python numpy clip用法及代码示例
- Python numpy char.count用法及代码示例
注:本文由纯净天空筛选整理自numpy.org大神的英文原创作品 numpy.distutils.ccompiler.CCompiler_customize。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。