From d86c15085426ca7e677c0f61fbf227e827cfd6ad Mon Sep 17 00:00:00 2001 From: kabeor <1597915586@qq.com> Date: Sun, 27 Feb 2022 23:31:51 +0800 Subject: [PATCH] fix for python publish build --- bindings/python/build_wheel.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bindings/python/build_wheel.sh diff --git a/bindings/python/build_wheel.sh b/bindings/python/build_wheel.sh new file mode 100644 index 00000000..b802cc03 --- /dev/null +++ b/bindings/python/build_wheel.sh @@ -0,0 +1,15 @@ +#!/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 . \ No newline at end of file