forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·33 lines (23 loc) · 990 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
#!/usr/bin/env bash
# wyoming-openwakeword
set -ex
apt-get update
apt-get install -y --no-install-recommends \
netcat-traditional \
libopenblas0
apt-get clean
rm -rf /var/lib/apt/lists/*
pip3 install --no-cache-dir --upgrade \
setuptools \
wheel
echo "wyoming-openwakeword: ${WYOMING_OPENWAKEWORD_VERSION} (branch: ${WYOMING_OPENWAKEWORD_BRANCH})"
git clone --branch=${WYOMING_OPENWAKEWORD_BRANCH} https://github.com/rhasspy/wyoming-openwakeword /opt/wyoming-openwakeword
cd /opt/wyoming-openwakeword
python3 setup.py sdist bdist_wheel --verbose --dist-dir /opt/wheels
cd /
rm -rf /opt/wyoming-openwakeword
pip3 install --no-cache-dir /opt/wheels/wyoming_openwakeword*.whl
pip3 show wyoming_openwakeword
python3 -c 'import wyoming_openwakeword; print(wyoming_openwakeword.__version__);'
twine upload --skip-existing --verbose /opt/wheels/wyoming_openwakeword*.whl || echo "failed to upload wheel to ${TWINE_REPOSITORY_URL}"
rm /opt/wheels/wyoming_openwakeword*.whl