hello.py内容如下
def greet(str):
return "hello " + str
setup.py内容如下
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["hello.py"]))
然后执行如下打包命令
python3 setup.py build_ext
hello.py内容如下
def greet(str):
return "hello " + str
setup.py内容如下
from distutils.core import setup
from Cython.Build import cythonize
setup(ext_modules = cythonize(["hello.py"]))
然后执行如下打包命令
python3 setup.py build_ext