Package boxmin :: Package tests :: Module setup
[hide private]

Source Code for Module boxmin.tests.setup

 1  #!/usr/bin/env python 
 2   
 3  from __future__ import nested_scopes 
 4   
 5  import os 
 6  import sys 
 7  from os.path import join,  dirname, exists 
 8   
 9   
10 -def configuration(parent_package='', 11 top_path=None 12 ):
13 from numpy.distutils.misc_util import Configuration 14 config = Configuration('tests', parent_package, top_path) 15 16 sources = [ join(config.package_path,'_cfitfn_example.cc') ] 17 config.add_extension('_cfitfn_example', sources=sources) 18 19 config.add_data_files('*.py') 20 21 return config
22 23 24 if __name__ == '__main__': 25 from numpy.distutils.core import setup 26 setup(**configuration(top_path='').todict()) 27