Skip to content
Snippets Groups Projects
dev.pyxbld 721 B
Newer Older
Nikolay Ivanov's avatar
Nikolay Ivanov committed
def make_ext(modname, pyxfilename):
    from distutils.core import Extension
Nikolay Ivanov's avatar
Nikolay Ivanov committed
    import numpy
    from Cython.Build import cythonize
    import os
    import sys
    return Extension(name='dev', sources=["dev.pyx"], language="c",
                     extra_compile_args=['-fopenmp'],
                     extra_link_args=['-lomp'],
                     libraries=['gsl', 'gslcblas'],
                     library_dirs=[os.path.join(sys.prefix, 'lib'),
                                   '/usr/local/lib'],
                     include_dirs=[numpy.get_include(),
                                   os.path.join(sys.prefix, 'include')],
                     define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")])