Skip to content

Commit 277e305

Browse files
authored
[CI] Fix setuptools pkg_resources Bug for PR GPU Tests (#13132)
Try to fix setuptools pkg_resources error for PR GPU test workflow
1 parent 5f3ea22 commit 277e305

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/pr_tests_gpu.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ jobs:
199199

200200
- name: Install dependencies
201201
run: |
202+
# Install pkgs which depend on setuptools<81 for pkg_resources first with no build isolation
203+
uv pip install pip==25.2 setuptools==80.10.2
204+
uv pip install --no-build-isolation k-diffusion==0.0.12
205+
uv pip install --upgrade pip setuptools
206+
# Install the rest as normal
202207
uv pip install -e ".[quality]"
203208
uv pip install peft@git+https://github.com/huggingface/peft.git
204209
uv pip uninstall accelerate && uv pip install -U accelerate@git+https://github.com/huggingface/accelerate.git

0 commit comments

Comments
 (0)