F2x.distutils.command.build_src module

class F2x.distutils.command.build_src.build_src(dist)

Bases: numpy.distutils.command.build_src.build_src

Build sources for an F2x extension.

This module creates source files for an extension. It proceeds by applying F2x with a given set of templates on the (appropriate) sources. For transformation of the sources, a given BuildStrategy may be applied.

boolean_options = ['force', 'inplace']
build_sources()
description = 'build sources from F2x'
finalize_options()

Set final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if ‘foo’ depends on ‘bar’, then it is safe to set ‘foo’ from ‘bar’ as long as ‘foo’ still has the same value it was assigned in ‘initialize_options()’.

This method must be implemented by all command classes.

get_target_dir(extension)
help_options = [('help-strategies', None, 'list available strategies', <function show_strategies>), ('help-templates', None, 'list available templates', <function show_templates>)]
initialize_options()

Set default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, ‘initialize_options()’ implementations are just a bunch of “self.foo = None” assignments.

This method must be implemented by all command classes.

populate_build_src(extension)
prepare_package(package_name)
select_sources(extension, strategy, target_dir, sources_to_wrap)
user_options = [('build-src=', 'd', 'directory to "build" sources to'), ('strategy=', None, 'appy the given strategy'), ('templates=', None, 'list of F2x templates to use'), ('f2x-options=', None, 'list of F2x command line options'), ('force', 'f', 'forcibly build everything (ignore file timestamps)'), ('inplace', 'i', 'ignore build-lib and put compiled extensions into the source directory alongside your pure Python modules')]
wrap_sources(sources_to_wrap)
F2x.distutils.command.build_src.get_strategy()

D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.