setup.py 728 B

12345678910111213141516171819202122
  1. import sys
  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_subpackage('tests')
  6. # AIX needs to be told to use large file support - at all times
  7. defs = [('_LARGE_FILES', None)] if sys.platform[:3] == "aix" else []
  8. # Configure pocketfft_internal
  9. config.add_extension('_pocketfft_internal',
  10. sources=['_pocketfft.c'],
  11. define_macros=defs,
  12. )
  13. config.add_data_files('*.pyi')
  14. return config
  15. if __name__ == '__main__':
  16. from numpy.distutils.core import setup
  17. setup(configuration=configuration)