Install resemble-perth with --no-build-isolation
Some checks failed
Build ROCm Image / build (push) Failing after 5m28s
Some checks failed
Build ROCm Image / build (push) Failing after 5m28s
pip's isolated build environments don't have the uv binary available, causing uv-build to fail. Installing with --no-build-isolation lets pip use the already-installed uv from the system environment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,11 +17,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
|
|
||||||
WORKDIR /app
|
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.
|
# Step 1: Install ROCm-compatible PyTorch stack first.
|
||||||
# This must happen before anything else to prevent pip from pulling CPU wheels.
|
# This must happen before anything else to prevent pip from pulling CPU wheels.
|
||||||
COPY requirements-rocm-init.txt .
|
COPY requirements-rocm-init.txt .
|
||||||
@@ -31,6 +26,12 @@ RUN pip3 install -r requirements-rocm-init.txt
|
|||||||
COPY requirements-rocm.txt .
|
COPY requirements-rocm.txt .
|
||||||
RUN pip3 install -r 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.
|
# Step 3: Install chatterbox with --no-deps so pip cannot replace ROCm torch.
|
||||||
RUN pip3 install --no-deps chatterbox-tts
|
RUN pip3 install --no-deps chatterbox-tts
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ huggingface-hub
|
|||||||
omegaconf
|
omegaconf
|
||||||
|
|
||||||
# Chatterbox dependencies (installed separately since chatterbox uses --no-deps)
|
# 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
|
conformer==0.3.2
|
||||||
s3tokenizer
|
s3tokenizer
|
||||||
spacy-pkuseg
|
spacy-pkuseg
|
||||||
|
|||||||
Reference in New Issue
Block a user