# Coding: UTF-8 -*-

"""Setup.py file for cython analysis kernels.

To build on cori:
$ CC=cc LDSHARED="cc -shared" python setup.py build_ext --inplace
"""


from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy

extensions = [
    Extension("kernels_spectral_cy",
              sources=["kernels_spectral_cy.pyx"],
              # libraries=["kernels"],
              # library_dirs=["lib"],
              include_dirs=[numpy.get_include(), "lib"],
              extra_compile_args=["-fopenmp", ],   # for GCC. Recommended with Python
              extra_link_args=["-fopenmp"]),
]

setup(name="kernels_spectral_cy",
      ext_modules=cythonize(extensions, compiler_directives={'language_level': "3"}))
