from Cython.Build import cythonize from setuptools import Extension ...
extensions = [ # find_pyx Extension("**.**.**", # module name ["src/**/**/**.pyx"], # absolute path of pyx file include_dirs=[numpy.get_include(), "e3rdpackage/boost"], # some 3rd package include dirs, such as numpy, boost. # same to `include_directories()` in `CMakeLists.txt` language="c++", # if using CPP. ) ] setup(... ext_modules=cythonize(extensions, language_level=3), )