Package boxmin :: Module setup
[hide private]

Source Code for Module boxmin.setup

 1  from numpy.distutils.misc_util import Configuration 
 2  from numpy.distutils.core      import setup 
 3  from os.path import join as path 
 4   
5 -def configuration(parent_package='', 6 top_path=None 7 ):
8 config = Configuration('boxmin', parent_package, top_path) 9 10 # package sources 11 sources = [ path(config.package_path, 'lib', '*.c') ] 12 sources += [ path(config.package_path, 'lib', 'levmar', p) 13 for p in [ 'lm.cc', 'lmbc.cc', 'Axb.cc', 'misc.cc'] 14 ] 15 config.add_library('boxmin', sources=sources) 16 17 # Extension reflmodule 18 sources = [path(config.package_path,'lib','_boxminmodule.cc'), 19 path(config.package_path,'lib','_boxminlevmarmodule.cc')] 20 21 config.add_extension('_boxmin', sources=sources, libraries=['boxmin']) 22 23 config.add_subpackage('tests') 24 25 config.add_data_dir('examples') 26 config.add_data_dir('doc') 27 28 #config.make_svn_version_py() # installs __svn_version__.py 29 30 return config
31 32 33 if __name__ == '__main__': 34 setup(**configuration(top_path='').todict()) 35