setup.py 496 B

12345678910111213141516171819202122232425
  1. """
  2. Provide python-space access to the functions exposed in numpy/__init__.pxd
  3. for testing.
  4. """
  5. import numpy as np
  6. from distutils.core import setup
  7. from Cython.Build import cythonize
  8. from setuptools.extension import Extension
  9. import os
  10. macros = [("NPY_NO_DEPRECATED_API", 0)]
  11. checks = Extension(
  12. "checks",
  13. sources=[os.path.join('.', "checks.pyx")],
  14. include_dirs=[np.get_include()],
  15. define_macros=macros,
  16. )
  17. extensions = [checks]
  18. setup(
  19. ext_modules=cythonize(extensions)
  20. )