F2x.distutils.strategy.library module

class F2x.distutils.strategy.library.ExtensionLibBuildStrategy(templates=None)

Bases: F2x.distutils.strategy.extension.ExtensionBuildStrategy

finish_build_extension(build_ext, extension)

No customization here.

get_ext_filename(build_src, ext_name)

No customization here (i.e., return None).

prepare_build_extension(build_ext, extension)

Prepare build by updating include directories.

prepare_extension(build_src, extension)

Prepare extension for code generation.

  • Collect information about extension sources into ext_modules.

  • Decide whether to split and split.

  • Collect libraries and modules form templates.

prepare_wrap_sources(build_src, extension, target_dir)

Prepare sources for wrapping. Make sure everything is where it is expected.

select_wrap_sources(build_src, extension, target_dir)

Collect information about sources to be built.

This method collects the following information about the module surces and passes them on:

  • name of original source file

  • target name of source file (from where code generation will take place)

  • names of new files to be expected

  • dependencies of those new files (i.e., templates, sources, interface config)