Files
tokenizers/bindings/python/build-wheels.sh
2019-11-29 22:36:17 -05:00

19 lines
449 B
Bash
Executable File

#!/bin/bash
set -ex
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain nightly-2019-11-01 -y
export PATH="$HOME/.cargo/bin:$PATH"
cd /io/bindings/python
for PYBIN in /opt/python/{cp35-cp35m,cp36-cp36m,cp37-cp37m}/bin; do
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
"${PYBIN}/pip" install -U setuptools-rust
"${PYBIN}/python" setup.py bdist_wheel
done
for whl in dist/*.whl; do
auditwheel repair "$whl" -w dist/
done