setup.py 611 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. from __future__ import division, print_function
  3. def configuration(parent_package='',top_path=None):
  4. from numpy.distutils.misc_util import Configuration
  5. config = Configuration('distutils', parent_package, top_path)
  6. config.add_subpackage('command')
  7. config.add_subpackage('fcompiler')
  8. config.add_data_dir('tests')
  9. config.add_data_files('site.cfg')
  10. config.add_data_files('mingw/gfortran_vs2003_hack.c')
  11. config.make_config_py()
  12. return config
  13. if __name__ == '__main__':
  14. from numpy.distutils.core import setup
  15. setup(configuration=configuration)