transonic.dist

Utilities for the setup.py files

User API

Provides the classes PythranBuildExt and PythranExtension to be used in the setup.py.

transonic.dist.detect_transonic_extensions(name_package: str, backend: str = 'pythran') Iterable[str][source]

Recursively scans a package for Pythran extensions to build, and returns a list of strings, where each string is a module name. The package should be present in the current working directory.

transonic.dist.init_transonic_extensions(name_package: str, backend: str = 'pythran', include_dirs: Iterable[str] = (), compile_args: Iterable[str] = (), exclude_exts: Iterable[str] = (), logger=None, inplace=None, annotate=False)[source]

Detects pythran extensions under a package and returns a list of Extension instances ready to be passed into the setup() function.

Parameters:
name_package:

Package to be recursively scanned for Pythran extensions.

backendstr

Only initialize extensions for this backend. If None, initialize extensions for the default backend (set by an environment variable).

include_dirs:

Directories to include while building extensions, for e.g.: numpy.get_include()

compile_args:

Arguments to be used while compiling extensions

exclude_ext:

Extensions to be excluded from the detected list.

Functions

detect_transonic_extensions(name_package[, ...])

Recursively scans a package for Pythran extensions to build, and returns a list of strings, where each string is a module name.

init_pythran_extensions(name_package[, ...])

init_transonic_extensions(name_package[, ...])

Detects pythran extensions under a package and returns a list of Extension instances ready to be passed into the setup() function.

Classes

ParallelBuildExt(dist, **kw)