forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·37 lines (26 loc) · 960 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
# wyoming-whisper
set -ex
apt-get update
apt-get install -y --no-install-recommends \
netcat
apt-get clean
rm -rf /var/lib/apt/lists/*
pip3 install -U \
setuptools \
wheel
# Clone wyoming-faster-whisper layer
git clone --branch=${WYOMING_WHISPER_BRANCH} https://github.com/rhasspy/wyoming-faster-whisper /tmp/wyoming-faster-whisper
cd /tmp/wyoming-faster-whisper
sed -i \
-e 's|^faster-whisper.*||g' \
requirements.txt
cat requirements.txt
python3 setup.py sdist bdist_wheel --verbose --dist-dir $PIP_WHEEL_DIR
cd /
rm -rf /tmp/wyoming-faster-whisper
pip3 install $PIP_WHEEL_DIR/wyoming_faster_whisper*.whl
pip3 show wyoming_faster_whisper
python3 -c 'import wyoming_faster_whisper; print(wyoming_faster_whisper.__version__);'
twine upload --skip-existing --verbose $PIP_WHEEL_DIR/wyoming_faster_whisper*.whl || echo "failed to upload wheel to ${TWINE_REPOSITORY_URL}"
rm $PIP_WHEEL_DIR/wyoming_faster_whisper*.whl