PyPI publishing

This commit is contained in:
chfl4gs
2021-10-04 21:12:49 +08:00
parent e8bd7ca087
commit e571dc278a
2 changed files with 125 additions and 0 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 .