From 0c2174e3a77677c2b24cd1240d77d6e1cb2c59d0 Mon Sep 17 00:00:00 2001 From: yesMohanHere Date: Fri, 17 Jul 2026 19:38:09 +0530 Subject: [PATCH] Dockerfile: build gsplat with --no-build-isolation gsplat's setup.py imports torch at build time; pip's isolated build environment hides the image's torch and fails with ModuleNotFoundError: No module named 'torch'. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06729c6b7..8ed113d9e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -98,7 +98,7 @@ COPY --from=source /tmp/nerfstudio/ /tmp/nerfstudio RUN export TORCH_CUDA_ARCH_LIST="$(echo "$CUDA_ARCHITECTURES" | tr ';' '\n' | awk '$0 > 70 {print substr($0,1,1)"."substr($0,2)}' | tr '\n' ' ' | sed 's/ $//')" && \ export MAX_JOBS=4 && \ GSPLAT_VERSION="$(sed -n 's/.*gsplat==\s*\([^," '"'"']*\).*/\1/p' /tmp/nerfstudio/pyproject.toml)" && \ - pip install --no-cache-dir git+https://github.com/nerfstudio-project/gsplat.git@v${GSPLAT_VERSION} && \ + pip install --no-cache-dir --no-build-isolation git+https://github.com/nerfstudio-project/gsplat.git@v${GSPLAT_VERSION} && \ pip install --no-cache-dir /tmp/nerfstudio 'numpy<2.0.0' && \ rm -rf /tmp/nerfstudio