2
def configuration(parent_package='',top_path=None, package_name='models'):
3
from numpy.distutils.misc_util import Configuration
4
config = Configuration(package_name,parent_package,top_path)
6
config.add_subpackage('*')
8
config.add_data_dir('tests')
12
from scipy.sandbox.models.bspline_module import mod
13
n, s, d = weave_ext(mod)
14
config.add_extension(n, s, **d)
15
except ImportError: pass
20
d = mod.setup_extension().__dict__
21
n = d['name']; del(d['name'])
22
s = d['sources']; del(d['sources'])
25
if __name__ == '__main__':
27
from numpy.distutils.core import setup
28
setup(**configuration(top_path='', package_name='scipy.sandbox.models').todict())