mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-03 11:18:29 +00:00
* Moving to manylinux2010 and remove nightly on Windows. * Add build for manylinux2014 for powerpc and aarch64 + Python v3.9 * Also add support for IBM mainframe * try with env variables * Move extra builds to their own workflow Co-authored-by: Anthony MOI <m.anthony.moi@gmail.com>
25 lines
669 B
Bash
Executable File
25 lines
669 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
export PATH="$HOME/.cargo/bin:$PATH"
|
|
|
|
for PYBIN in /opt/python/{cp35-cp35m,cp36-cp36m,cp37-cp37m,cp38-cp38,cp39-cp39}/bin; do
|
|
export PYTHON_SYS_EXECUTABLE="$PYBIN/python"
|
|
|
|
"${PYBIN}/pip" install -U setuptools-rust==0.11.3
|
|
"${PYBIN}/python" setup.py bdist_wheel
|
|
rm -rf build/*
|
|
done
|
|
|
|
for whl in dist/*.whl; do
|
|
auditwheel repair "$whl" -w dist/
|
|
done
|
|
|
|
# Keep only manylinux wheels
|
|
rm dist/*-linux_*
|
|
|
|
# Upload wheels
|
|
/opt/python/cp37-cp37m/bin/pip install -U awscli
|
|
/opt/python/cp37-cp37m/bin/python -m awscli s3 sync --exact-timestamps ./dist "s3://tokenizers-releases/python/$DIST_DIR"
|