-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
run.sh
executable file
·37 lines (30 loc) · 1.21 KB
/
run.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
set -euo pipefail
# Ensure correct cwd, for example: ~/Projects/Tauon
cd "$(dirname "$0")"
export PYTHONPATH=".":"${PYTHONPATH-}"
rm -rf .venv build dist tauon_music_box.egg-info src/phazor/kissfft src/phazor/miniaudio
mkdir -p src/phazor/kissfft src/phazor/miniaudio
_kissfftver=131.1.0
_miniaudiocommit=4a5b74bef029b3592c54b6048650ee5f972c1a48
if [[ ! -e kissfft.tar.gz ]]; then
curl -L -o kissfft.tar.gz "https://github.com/mborgerding/kissfft/archive/refs/tags/${_kissfftver}.tar.gz"
fi
if [[ ! -e miniaudio.tar.gz ]]; then
curl -L -o miniaudio.tar.gz "https://github.com/mackron/miniaudio/archive/${_miniaudiocommit}.tar.gz"
fi
tar --strip-components=1 -xvf kissfft.tar.gz -C ./src/phazor/kissfft/
tar --strip-components=1 -xvf miniaudio.tar.gz -C ./src/phazor/miniaudio/
python -m venv .venv
# Windows: .\.venv\Scripts\activate
source .venv/bin/activate
pip install -r requirements.txt
pip install -r requirements_optional.txt
#pip install -r requirements_devel.txt
#pip install -r requirements_windows.txt
pip install build
python -m compile_translations
python -m build --wheel
#python -m installer --destdir=".venv" dist/*.whl
pip install --prefix ".venv" dist/*.whl --force-reinstall
tauonmb "$@"