File size: 451 Bytes
ac7cda5
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import numpy as np
import os

def make_ext(modname, pyxfilename):
    from distutils.extension import Extension

    return Extension(name=modname,
                     sources=[pyxfilename, os.path.join(os.path.dirname(pyxfilename), "blend_impl.c")],
                     include_dirs=[np.get_include(), os.path.dirname(pyxfilename)],
                     extra_compile_args=["-O3", "-std=c99", "-march=native", "-ffast-math"],
                    )