You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.4 KiB
Python
38 lines
1.4 KiB
Python
from __future__ import division, print_function, absolute_import
|
|
|
|
from scipy._build_utils import numpy_nodepr_api
|
|
|
|
|
|
def configuration(parent_package='', top_path=None):
|
|
from numpy.distutils.misc_util import Configuration
|
|
|
|
config = Configuration('signal', parent_package, top_path)
|
|
|
|
config.add_data_dir('tests')
|
|
|
|
config.add_subpackage('windows')
|
|
|
|
config.add_extension('sigtools',
|
|
sources=['sigtoolsmodule.c', 'firfilter.c',
|
|
'medianfilter.c', 'lfilter.c.src',
|
|
'correlate_nd.c.src'],
|
|
depends=['sigtools.h'],
|
|
include_dirs=['.'],
|
|
**numpy_nodepr_api)
|
|
|
|
config.add_extension('_spectral', sources=['_spectral.c'])
|
|
config.add_extension('_max_len_seq_inner', sources=['_max_len_seq_inner.c'])
|
|
config.add_extension('_peak_finding_utils',
|
|
sources=['_peak_finding_utils.c'])
|
|
config.add_extension('_upfirdn_apply', sources=['_upfirdn_apply.c'])
|
|
spline_src = ['splinemodule.c', 'S_bspline_util.c', 'D_bspline_util.c',
|
|
'C_bspline_util.c', 'Z_bspline_util.c', 'bspline_util.c']
|
|
config.add_extension('spline', sources=spline_src, **numpy_nodepr_api)
|
|
|
|
return config
|
|
|
|
|
|
if __name__ == '__main__':
|
|
from numpy.distutils.core import setup
|
|
setup(**configuration(top_path='').todict())
|