setup.py 550 B

1234567891011121314151617181920
  1. from __future__ import division, print_function
  2. def configuration(parent_package='',top_path=None):
  3. from numpy.distutils.misc_util import Configuration
  4. config = Configuration('fft', parent_package, top_path)
  5. config.add_data_dir('tests')
  6. # Configure fftpack_lite
  7. config.add_extension('fftpack_lite',
  8. sources=['fftpack_litemodule.c', 'fftpack.c']
  9. )
  10. return config
  11. if __name__ == '__main__':
  12. from numpy.distutils.core import setup
  13. setup(configuration=configuration)