編譯 pyav 成 wheel 並使用 auditwheel 固化動態連結庫

發表於2023-09-27
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

相關文章