File size: 861 Bytes
9db4736
 
 
 
 
 
 
 
 
 
 
6fb5dda
 
 
 
 
 
 
 
 
 
 
 
 
9db4736
 
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
#!/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)!"