alphacep--vosk-api
18 行
422 B
Bash
可执行文件
18 行
422 B
Bash
可执行文件
#!/bin/bash
|
|
set -e -x
|
|
|
|
export KALDI_ROOT=/opt/kaldi
|
|
|
|
# Compile wheels
|
|
for pypath in /opt/python/cp3[6789]*; do
|
|
export VOSK_SOURCE=/io/src
|
|
mkdir -p /opt/wheelhouse
|
|
rm -rf /io/python/build
|
|
"${pypath}/bin/pip" -v wheel /io/python -w /opt/wheelhouse
|
|
done
|
|
|
|
# Bundle external shared libraries into the wheels
|
|
for whl in /opt/wheelhouse/*.whl; do
|
|
auditwheel repair "$whl" --plat $PLAT -w /io/wheelhouse/
|
|
done
|