Cython
跳转到导航
跳转到搜索
示例
def f(double x):
return x**2-x
setup.py 程序:
#!/usr/bin/env python3
# vim:fileencoding=utf-8
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
ext_modules = [Extension("t", ["t.pyx"])]
setup(
name = 'Hello world app',
cmdclass = {'build_ext': build_ext},
ext_modules = ext_modules
)