From 277e3055898dd98c89cafb7df7c1d359b554df76 Mon Sep 17 00:00:00 2001 From: dg845 <58458699+dg845@users.noreply.github.com> Date: Thu, 12 Feb 2026 20:39:32 -0800 Subject: [PATCH] [CI] Fix `setuptools` `pkg_resources` Bug for PR GPU Tests (#13132) Try to fix setuptools pkg_resources error for PR GPU test workflow --- .github/workflows/pr_tests_gpu.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr_tests_gpu.yml b/.github/workflows/pr_tests_gpu.yml index dd20bbe932..3cc9aa4e86 100644 --- a/.github/workflows/pr_tests_gpu.yml +++ b/.github/workflows/pr_tests_gpu.yml @@ -199,6 +199,11 @@ jobs: - name: Install dependencies run: | + # Install pkgs which depend on setuptools<81 for pkg_resources first with no build isolation + uv pip install pip==25.2 setuptools==80.10.2 + uv pip install --no-build-isolation k-diffusion==0.0.12 + uv pip install --upgrade pip setuptools + # Install the rest as normal uv pip install -e ".[quality]" uv pip install peft@git+https://github.com/huggingface/peft.git uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git