3
from os.path import join
6
def configuration(parent_package='',top_path=None):
8
from numpy.distutils.misc_util import Configuration
10
config = Configuration('multigrid',parent_package,top_path)
12
config.add_data_dir('tests')
14
# Adding a Python file as a "source" file for an extension is something of
15
# a hack, but it works to put it in the right place.
16
sources = [join('multigridtools', x) for x in ['multigridtools.py', 'multigridtools_wrap.cxx']]
17
config.add_extension('_multigridtools',
19
include_dirs=['multigridtools'])
22
if __name__ == '__main__':
23
from numpy.distutils.core import setup
24
setup(**configuration(top_path='').todict())