diff --git a/Dockerfile.rocm b/Dockerfile.rocm index bfd49f0..84b04a3 100644 --- a/Dockerfile.rocm +++ b/Dockerfile.rocm @@ -17,11 +17,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Install uv and expose its bundled binary so pip isolated build environments -# can find it when building packages that use uv-build (e.g. resemble-perth). -RUN pip3 install uv && \ - ln -sf "$(python3 -c 'import uv; print(uv.find_uv_bin())')" /usr/local/bin/uv - # Step 1: Install ROCm-compatible PyTorch stack first. # This must happen before anything else to prevent pip from pulling CPU wheels. COPY requirements-rocm-init.txt . @@ -31,6 +26,12 @@ RUN pip3 install -r requirements-rocm-init.txt COPY requirements-rocm.txt . RUN pip3 install -r requirements-rocm.txt +# Step 3: Install resemble-perth with --no-build-isolation so pip uses the +# already-installed uv binary instead of an isolated env where it can't find it. +RUN pip3 install uv && \ + pip3 install --no-build-isolation \ + "resemble-perth @ git+https://github.com/resemble-ai/Perth.git@master" + # Step 3: Install chatterbox with --no-deps so pip cannot replace ROCm torch. RUN pip3 install --no-deps chatterbox-tts diff --git a/requirements-rocm.txt b/requirements-rocm.txt index bed48dc..f66ca9f 100644 --- a/requirements-rocm.txt +++ b/requirements-rocm.txt @@ -12,7 +12,7 @@ huggingface-hub omegaconf # Chatterbox dependencies (installed separately since chatterbox uses --no-deps) -resemble-perth @ git+https://github.com/resemble-ai/Perth.git@master +# Note: resemble-perth is installed in a separate Dockerfile step with --no-build-isolation conformer==0.3.2 s3tokenizer spacy-pkuseg