Use dockcross for aarch64 wheel
This commit is contained in:
parent
23852aa77e
commit
50a0b59d0d
|
@ -111,7 +111,9 @@ jobs:
|
||||||
chmod +x ./dockcross
|
chmod +x ./dockcross
|
||||||
./dockcross bindings/python/build_wheel.sh
|
./dockcross bindings/python/build_wheel.sh
|
||||||
elif [ ${{ matrix.config.name }} == 'manylinux2014_aarch64' ]; then
|
elif [ ${{ matrix.config.name }} == 'manylinux2014_aarch64' ]; then
|
||||||
docker run --rm -v `pwd`/:/work quay.io/pypa/manylinux2014_aarch64 bash /work/bindings/python/build_wheel_aarch64.sh
|
docker run --rm -v `pwd`/:/work dockcross/manylinux2014-aarch64 > ./dockcross
|
||||||
|
chmod +x ./dockcross
|
||||||
|
./dockcross bindings/python/build_wheel.sh --plat-name manylinux2014_aarch64
|
||||||
elif [ ${{ matrix.config.name }} == 'manylinux2014_x86_64' ]; then
|
elif [ ${{ matrix.config.name }} == 'manylinux2014_x86_64' ]; then
|
||||||
docker run --rm -v `pwd`/:/work dockcross/manylinux2014-x64 > ./dockcross
|
docker run --rm -v `pwd`/:/work dockcross/manylinux2014-x64 > ./dockcross
|
||||||
chmod +x ./dockcross
|
chmod +x ./dockcross
|
||||||
|
|
|
@ -5,10 +5,15 @@ cd bindings/python
|
||||||
|
|
||||||
# Compile wheels
|
# Compile wheels
|
||||||
if [ -f /opt/python/cp36-cp36m/bin/python ];then
|
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
|
else
|
||||||
python3 setup.py bdist_wheel
|
python3 setup.py bdist_wheel $@
|
||||||
fi
|
fi
|
||||||
cd dist
|
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
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yum install python3 -y
|
|
||||||
python3 -m pip install -U setuptools wheel auditwheel
|
|
||||||
cd /work/bindings/python
|
|
||||||
python3 setup.py bdist_wheel
|
|
||||||
|
|
||||||
cd dist
|
|
||||||
auditwheel repair *.whl
|
|
||||||
mv -f wheelhouse/*.whl .
|
|
Loading…
Reference in New Issue