Skip to content

Commit 067f0b8

Browse files
kapil27cursoragent
authored andcommitted
fix: disable build isolation for rocm280 dependency install
Flash-attn's build hooks import torch, which fails under pip build isolation during micropipenv installation in the py312-rocm64-torch280 image. Set PIP_NO_BUILD_ISOLATION=1 for the install step so torch is visible and the image build no longer fails at flash-attn resolution. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent b9fa0ea commit 067f0b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • images/runtime/training/py312-rocm64-torch280

images/runtime/training/py312-rocm64-torch280/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ RUN pip install --no-cache-dir -U "micropipenv[toml]"
5656
# Install Python dependencies from Pipfile.lock file
5757
COPY Pipfile.lock ./
5858

59-
RUN micropipenv install -- --no-cache-dir && \
59+
RUN PIP_NO_BUILD_ISOLATION=1 micropipenv install -- --no-cache-dir && \
6060
rm -f ./Pipfile.lock && \
6161
# Fix permissions to support pip in OpenShift environments \
6262
chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \

0 commit comments

Comments
 (0)