编译 pyav 成 wheel 并使用 auditwheel 固化动态链接库

python setup.py sdist bdist_wheel
auditwheel repair dist/av*.whl --plat=manylinux_2_35_x86_64

输出如下:

(Linux.5.15.0-84-generic.cpython3.10) pon@T4GPU:~/code/me/github/PyAV$ auditwheel   repair dist/av*.whl --plat=manylinux_2_35_x86_64
INFO:auditwheel.main_repair:Repairing av-10.0.0-cp310-cp310-linux_x86_64.whl
INFO:auditwheel.wheeltools:Previous filename tags: linux_x86_64
INFO:auditwheel.wheeltools:New filename tags: manylinux_2_35_x86_64
INFO:auditwheel.wheeltools:Previous WHEEL info tags: cp310-cp310-linux_x86_64
INFO:auditwheel.wheeltools:New WHEEL info tags: cp310-cp310-manylinux_2_35_x86_64
INFO:auditwheel.main_repair:
Fixed-up wheel written to /home/pon/code/me/github/PyAV/wheelhouse/av-10.0.0-cp310-cp310-manylinux_2_35_x86_64.whl

安装最新的 patchelf
参考:https://github.com/NixOS/patchelf

安装 patchelf 之前要安装 autoconf

sudo apt install autoconf

你可能感兴趣的:(pythonffmpeg)