numpy.distutils.core.Extension#

class numpy.distutils.core.Extension(name, sources, include_dirs=None, define_macros=None, undef_macros=None, library_dirs=None, libraries=None, runtime_library_dirs=None, extra_objects=None, extra_compile_args=None, extra_link_args=None, export_symbols=None, swig_opts=None, depends=None, language=None, f2py_options=None, module_dirs=None, extra_c_compile_args=None, extra_cxx_compile_args=None, extra_f77_compile_args=None, extra_f90_compile_args=None)[源代码][源代码]#
参数:
namestr

扩展名称.

sourceslist of str

相对于包的顶层目录的源文件位置列表.

extra_compile_argslist of str

传递给编译器的额外命令行参数.

extra_f77_compile_argslist of str

传递给 fortran77 编译器的额外命令行参数.

extra_f90_compile_argslist of str

传递给 fortran90 编译器的额外命令行参数.

方法

has_cxx_sources

has_f2py_sources