Package park :: Package modelling :: Module setup

Source Code for Module park.modelling.setup

 1  #!/usr/bin/env python 
 2   
 3  import os.path 
 4   
 5  from numpy.distutils.misc_util import Configuration 
 6  from numpy.distutils.core      import setup 
 7   
 8   
9 -def configuration(parent_package='', 10 top_path=None 11 ):
12 config = Configuration('modelling', parent_package, top_path) 13 14 # Convolution 15 srcpath = os.path.join(config.package_path, 'lib') 16 sources = [ os.path.join(srcpath,pattern) 17 for pattern in ['*.c','*.cc'] ] 18 19 config.add_extension('_modelling', 20 sources=sources, 21 ) 22 23 return config
24 25 26 if __name__ == '__main__': 27 setup(**configuration(top_path='').todict()) 28