From 18d78f02cf2f3869061032e87625f78b3c745c5b Mon Sep 17 00:00:00 2001 From: Dan Saunders Date: Sat, 4 Oct 2025 09:48:19 -0400 Subject: [PATCH] fix sdist --- .github/workflows/tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4fd6fc8da..56c18b231 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -155,10 +155,11 @@ jobs: - name: Install dependencies run: | uv pip show --system torch - uv pip install --system wheel build + uv pip install --system wheel build setuptools_scm python -m build --sdist printf "torch==${{ matrix.pytorch_version }}\n" > torch-constraints.txt - uv pip install --no-cache-dir --no-build-isolation --system "dist/axolotl*.tar.gz[dev]" --constraints torch-constraints.txt + tarball_path=$(echo dist/axolotl*.tar.gz) + uv pip install --no-cache-dir --no-build-isolation --system "${tarball_path}[dev]" --constraints torch-constraints.txt python scripts/unsloth_install.py | sh python scripts/cutcrossentropy_install.py | sh