numpy.distutils.misc_util.Configuration.add_library

Configuration.add_library(name, sources, **build_info)

Add library to configuration.

Parameters:

name : str

Name of the extension.

sources : sequence

List of the sources. The list of sources may contain functions (called source generators) which must take an extension instance and a build directory as inputs and return a source file or list of source files or None. If None is returned then no sources are generated. If the Extension instance has no sources after processing all source generators, then no extension module is built.

build_info : dict, optional

The following keys are allowed:

  • depends
  • macros
  • include_dirs
  • extra_compiler_args
  • f2py_options
  • language

This Page