Files
chfl4gs e405f7b1a1 PyPI updates (#469)
* Travis-CI build & nmake batch file updates

* pypi fix
2020-06-14 01:45:32 +08:00

16 lines
361 B
Bash
Executable File

#!/bin/bash
set -e -x
cd bindings/python
sudo rm /usr/bin/python && sudo ln -s /opt/python/cp27-cp27m/bin/python /usr/bin/python; python -V
# 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 .