我正在使用Cython爲我有的幾個python模塊生成編譯.so文件。作爲outlined in the Cython documentation,你可以按如下方式創建一個setup.py文件: from distutils.core import setup
from Cython.Build import cythonize
setup(
ext_modules = cython
我似乎無法破解如何更改setup.py自定義命令中的目錄。我的python模塊需要opencv,它需要從源代碼創建。 一切順利通過CMake ['cmake','-Hopencv',"-Bopencv/build"],
... -- Configuring done
-- Generating done
-- Build files have been written to: /root/