stemsplit-backend / build.sh
nifty-coder
working
6fb5dda
Raw History Blame Contribute Delete
861 Bytes
#!/bin/bash
# Install dependencies
# 1. Update pip
pip install --upgrade pip
# 2. Install base requirements
pip install -r requirements.txt
# 3. Install demucs dependencies separately to manage version conflicts
echo "Installing demucs dependencies..."
pip install dora-search einops "julius>=0.2.3" openunmix tqdm pyyaml "lameenc>=1.2" demucs
# 4. Download static ffmpeg (for Render/Linux)
if [ ! -f "ffmpeg" ] && [ "$(uname)" == "Linux" ]; then
echo "Downloading static ffmpeg..."
wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
tar -xf ffmpeg-release-amd64-static.tar.xz
# Move binaries to root
find . -name "ffmpeg" -type f -exec mv {} . \;
find . -name "ffprobe" -type f -exec mv {} . \;
chmod +x ffmpeg ffprobe
rm -rf ffmpeg-*-amd64-static*
fi
echo "Build complete (Pure Python)!"