fix: build and install leann meta package on all platforms

The leann meta package is pure Python and platform-independent, so there's
no reason to restrict it to Ubuntu only. This ensures all platforms use
consistent local builds instead of falling back to PyPI versions.
This commit is contained in:
Andy Lee
2025-08-11 01:40:55 -07:00
parent 068fb38bae
commit 578a89d180

View File

@@ -169,11 +169,9 @@ jobs:
cd ../.. cd ../..
# Build meta package (platform independent) # Build meta package (platform independent)
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then cd packages/leann
cd packages/leann uv build
uv build cd ../..
cd ../..
fi
- name: Repair wheels (Linux) - name: Repair wheels (Linux)
if: runner.os == 'Linux' if: runner.os == 'Linux'
@@ -242,10 +240,8 @@ jobs:
# Install the built wheels directly without checking PyPI # Install the built wheels directly without checking PyPI
# This avoids the dependency resolution issue for new platforms # This avoids the dependency resolution issue for new platforms
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz
uv pip install packages/leann-core/dist/*.whl || uv pip install packages/leann-core/dist/*.tar.gz uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz
uv pip install packages/leann/dist/*.whl || uv pip install packages/leann/dist/*.tar.gz
fi
# Install backend wheels directly with Python version filtering # Install backend wheels directly with Python version filtering
PYTHON_VERSION="${{ matrix.python }}" PYTHON_VERSION="${{ matrix.python }}"