One way to make Cython create C++ files is to use a pyxbld file. For example, create foo.pyxbld
containing the following:
def make_ext(modname, pyxfilename):
from distutils.extension import Extension
return Extension(name=modname,
sources=[pyxfilename],
language='c++')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…