nifty-coder/stemsplit-backend
0
1#!/bin/bash2# Install dependencies3 4# 1. Update pip5pip install --upgrade pip6 7# 2. Install base requirements8pip install -r requirements.txt9 10# 3. Install demucs dependencies separately to manage version conflicts11echo "Installing demucs dependencies..."12pip install dora-search einops "julius>=0.2.3" openunmix tqdm pyyaml "lameenc>=1.2" demucs13 14# 4. Download static ffmpeg (for Render/Linux)15if [ ! -f "ffmpeg" ] && [ "$(uname)" == "Linux" ]; then16 echo "Downloading static ffmpeg..."17 wget -q https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz18 tar -xf ffmpeg-release-amd64-static.tar.xz19 # Move binaries to root20 find . -name "ffmpeg" -type f -exec mv {} . \;21 find . -name "ffprobe" -type f -exec mv {} . \;22 chmod +x ffmpeg ffprobe23 rm -rf ffmpeg-*-amd64-static*24fi25 26echo "Build complete (Pure Python)!"27 