adding pypi workflow (#1280)

* adding pypi workflow

* PyPI distribution packages workflow
This commit is contained in:
chfl4gs
2020-06-06 12:53:31 +08:00
committed by GitHub
parent 2e0f753e6f
commit 9288b4a845
3 changed files with 96 additions and 28 deletions

14
bindings/python/build_wheel.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -e -x
cd bindings/python
# Compile wheels
if [ -f /opt/python/cp36-cp36m/bin/python ];then
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
else
python3 setup.py bdist_wheel
fi
cd dist
auditwheel repair *.whl
mv -f wheelhouse/*.whl .