mirror of
https://github.com/mudler/LocalAI
synced 2026-05-24 09:28:23 +00:00
19 lines
600 B
Bash
19 lines
600 B
Bash
|
|
#!/bin/bash
|
||
|
|
set -e
|
||
|
|
|
||
|
|
# liquid-audio requires Python ≥ 3.12 (per its pyproject.toml); the default
|
||
|
|
# portable Python in libbackend.sh is 3.10. Override before sourcing.
|
||
|
|
export PYTHON_VERSION="${PYTHON_VERSION:-3.12}"
|
||
|
|
export PYTHON_PATCH="${PYTHON_PATCH:-11}"
|
||
|
|
|
||
|
|
backend_dir=$(dirname $0)
|
||
|
|
if [ -d $backend_dir/common ]; then
|
||
|
|
source $backend_dir/common/libbackend.sh
|
||
|
|
else
|
||
|
|
source $backend_dir/../common/libbackend.sh
|
||
|
|
fi
|
||
|
|
|
||
|
|
# liquid-audio's torch wheels are large; allow upgrades to satisfy transitive pins
|
||
|
|
EXTRA_PIP_INSTALL_FLAGS+=" --upgrade --index-strategy=unsafe-first-match"
|
||
|
|
installRequirements
|