python setup.py sdist bdist_wheel
auditwheel repair dist/av*.whl --plat=manylinux_2_35_x86_64
如果你想知道 manylinux_2_35 是什么含义,可以参考:pypa/manylinux

输出如下:

(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

universe_king
3.4k 声望680 粉丝