MCPcopy Create free account
hub / github.com/numpy/numpy / configuration

Function configuration

numpy/fft/setup.py:3–18  ·  view source on GitHub ↗
(parent_package='',top_path=None)

Source from the content-addressed store, hash-verified

1import sys
2
3def configuration(parent_package='',top_path=None):
4 from numpy.distutils.misc_util import Configuration
5 config = Configuration('fft', parent_package, top_path)
6
7 config.add_subpackage('tests')
8
9 # AIX needs to be told to use large file support - at all times
10 defs = [('_LARGE_FILES', None)] if sys.platform[:3] == "aix" else []
11 # Configure pocketfft_internal
12 config.add_extension('_pocketfft_internal',
13 sources=['_pocketfft.c'],
14 define_macros=defs,
15 )
16
17 config.add_data_files('*.pyi')
18 return config
19
20if __name__ == '__main__':
21 from numpy.distutils.core import setup

Callers

nothing calls this directly

Calls 4

add_subpackageMethod · 0.95
add_extensionMethod · 0.95
add_data_filesMethod · 0.95
ConfigurationClass · 0.90

Tested by

no test coverage detected