1#!/bin/bash 2set -e -x 3 4cd bindings/python 5sudo rm /usr/bin/python && sudo ln -s /opt/python/cp27-cp27m/bin/python /usr/bin/python; python -V 6 7# Compile wheels 8if [ -f /opt/python/cp36-cp36m/bin/python ];then 9 /opt/python/cp36-cp36m/bin/python setup.py bdist_wheel 10else 11 python3 setup.py bdist_wheel 12fi 13cd dist 14auditwheel repair *.whl 15mv -f wheelhouse/*.whl . 16