本文簡要介紹 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。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。