setup.py 709 B

123456789101112131415161718192021
  1. #!/usr/bin/env python3
  2. def configuration(parent_package='',top_path=None):
  3. from numpy.distutils.misc_util import Configuration
  4. config = Configuration('testing', parent_package, top_path)
  5. config.add_subpackage('_private')
  6. config.add_subpackage('tests')
  7. config.add_data_files('*.pyi')
  8. config.add_data_files('_private/*.pyi')
  9. return config
  10. if __name__ == '__main__':
  11. from numpy.distutils.core import setup
  12. setup(maintainer="NumPy Developers",
  13. maintainer_email="numpy-dev@numpy.org",
  14. description="NumPy test module",
  15. url="https://www.numpy.org",
  16. license="NumPy License (BSD Style)",
  17. configuration=configuration,
  18. )