Use dockcross for aarch64 wheel

This commit is contained in:
mio
2022-10-01 01:31:13 +02:00
parent 23852aa77e
commit 50a0b59d0d
3 changed files with 12 additions and 15 deletions

View File

@@ -5,10 +5,15 @@ cd bindings/python
# Compile wheels
if [ -f /opt/python/cp36-cp36m/bin/python ];then
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel $@
else
python3 setup.py bdist_wheel
python3 setup.py bdist_wheel $@
fi
cd dist
auditwheel repair *.whl
mv -f wheelhouse/*.whl .
# We can't repair an aarch64 wheel on x64 hosts
# https://github.com/pypa/auditwheel/issues/244
if [[ ! "$*" =~ "aarch64" ]];then
auditwheel repair *.whl
mv -f wheelhouse/*.whl .
fi