mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-20 07:22:34 +08:00
fix(build): remove unsupported --break-system-packages from pip wheel in builder
This commit is contained in:
parent
97b4d164ed
commit
7318b3f5d1
@ -18,7 +18,7 @@ RUN set -eux; \
|
|||||||
|
|
||||||
WORKDIR /tmp/sage
|
WORKDIR /tmp/sage
|
||||||
|
|
||||||
# Install Torch cu129 in builder (matches runtime) and build wheel (PEP 668: allow system installs here)
|
# Install Torch cu129 in builder (matches runtime)
|
||||||
RUN python -m pip install --upgrade pip setuptools wheel --break-system-packages && \
|
RUN python -m pip install --upgrade pip setuptools wheel --break-system-packages && \
|
||||||
python -m pip install torch torchvision torchaudio \
|
python -m pip install torch torchvision torchaudio \
|
||||||
--extra-index-url https://download.pytorch.org/whl/cu129 \
|
--extra-index-url https://download.pytorch.org/whl/cu129 \
|
||||||
@ -26,7 +26,7 @@ RUN python -m pip install --upgrade pip setuptools wheel --break-system-packages
|
|||||||
|
|
||||||
# Shallow clone SageAttention and build a cp312 wheel
|
# Shallow clone SageAttention and build a cp312 wheel
|
||||||
RUN git clone --depth 1 https://github.com/thu-ml/SageAttention.git . && \
|
RUN git clone --depth 1 https://github.com/thu-ml/SageAttention.git . && \
|
||||||
python -m pip wheel . --no-deps --no-build-isolation -w /dist --break-system-packages
|
python -m pip wheel . --no-deps --no-build-isolation -w /dist
|
||||||
|
|
||||||
# --------------------------
|
# --------------------------
|
||||||
# Stage 2: runtime image (slim)
|
# Stage 2: runtime image (slim)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user