From 88c2084d19d2b1a38f741a6f7de9fa816cca78e8 Mon Sep 17 00:00:00 2001 From: scott Date: Sun, 5 Apr 2026 10:53:14 -0400 Subject: [PATCH] Symlink uv binary to /usr/local/bin for pip build envs pip's isolated build environments inherit system PATH but don't get the uv binary automatically. Symlinking via uv.find_uv_bin() makes it available so resemble-perth's uv-build backend can execute. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile.rocm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.rocm b/Dockerfile.rocm index 46706c6..bfd49f0 100644 --- a/Dockerfile.rocm +++ b/Dockerfile.rocm @@ -17,8 +17,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Install uv so packages that use uv-build as their build backend can be built. -RUN pip3 install uv +# 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.