API Documentation

extension_helpers Package

Functions

add_openmp_flags_if_available(extension)

Add OpenMP compilation flags, if supported (if not a warning will be printed to the console and no flags will be added.)

get_compiler()

Determines the compiler that will be used to build extension modules.

get_extensions([srcdir])

Collect all extensions from Cython files and setup_package.py files.

import_file(filename[, name])

Imports a module from a single file without importing the package that the file is in.

pkg_config(packages, default_libraries[, ...])

Uses pkg-config to update a set of distutils Extension arguments to include the flags necessary to link against the given packages.

write_if_different(filename, data)

Write data to filename, if the content of the file is different.