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 asetup_package.py
module. This module can contain theget_extensions()
function which returns a list ofsetuptools.Extension
objects.