File: setup_signal.py

package info (click to toggle)
python-scipy 0.3.2-6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,572 kB
  • ctags: 20,326
  • sloc: ansic: 87,138; fortran: 51,876; python: 47,747; cpp: 2,134; objc: 384; makefile: 175; sh: 83
file content (27 lines) | stat: -rwxr-xr-x 1,046 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python

import os
from scipy_distutils.core import Extension
from scipy_distutils.misc_util import get_path, default_config_dict, dot_join

def configuration(parent_package='',parent_path=None):
    package = 'signal'
    local_path = get_path(__name__,parent_path)    
    config = default_config_dict(package, parent_package)

    sources = ['sigtoolsmodule.c','firfilter.c','medianfilter.c']
    sources = [os.path.join(local_path,x) for x in sources]
    ext = Extension(dot_join(parent_package,package,'sigtools'), sources)
    config['ext_modules'].append(ext)
    
    sources = ['splinemodule.c','S_bspline_util.c','D_bspline_util.c',
               'C_bspline_util.c','Z_bspline_util.c','bspline_util.c']
    sources = [os.path.join(local_path,x) for x in sources]               
    ext = Extension(dot_join(parent_package,package,'spline'),sources)
    config['ext_modules'].append(ext)

    return config

if __name__ == '__main__':
    from scipy_distutils.core import setup
    setup(**configuration(parent_path=''))