参考资料:https://blog.csdn.net/qq_16912257/article/details/80161112
https://blog.csdn.net/linshenyuan1213/article/details/72677246
1.编写setput.py文件:
setup.py文件内容如下:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
extensions = [
Extension("UIBox", ["UIBox.py"],
include_dirs=["../include"],
libraries=["../lib/cv2/cv2.cpython-36m-aarch64-linux-gnu.so",
"../lib/dlib-19.17.0-py3.6-linux-aarch64.egg/dlib.cpython-36m-aarch64-linux-gnu.so"],
library_dirs=["../lib/cv2",
"../lib/dlib-19.17.0-py3.6-linux-aarch64.egg"]),
Extension("UIShow", ["UIShow.py"],
include_dirs=["../include"],