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:
14
.github/workflows/build-reusable.yml
vendored
14
.github/workflows/build-reusable.yml
vendored
@@ -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 }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user