关于python:编译-pyav-成-wheel-并使用-auditwheel-固化动态链接库

57次阅读

共计 797 个字符,预计需要花费 2 分钟才能阅读完成。

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

正文完
 0