get_extensions

extension_helpers.get_extensions(srcdir='.')

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

If numpy is importable, the numpy include path will be added to all Cython extensions which are automatically generated.

This function obtains that information by iterating through all packages in srcdir and locating a setup_package.py module. This module can contain the get_extensions() function which returns a list of setuptools.Extension objects.