fix: install backend wheels before meta packages
Install backend wheels first to ensure they're available when core/meta packages are installed, preventing uv from trying to resolve backend dependencies from PyPI.
This commit is contained in:
11
.github/workflows/build-reusable.yml
vendored
11
.github/workflows/build-reusable.yml
vendored
@@ -227,15 +227,14 @@ jobs:
|
|||||||
uv venv --python ${{ matrix.python }}
|
uv venv --python ${{ matrix.python }}
|
||||||
source .venv/bin/activate || source .venv/Scripts/activate
|
source .venv/bin/activate || source .venv/Scripts/activate
|
||||||
|
|
||||||
# Install the built wheels directly without checking PyPI
|
# Install backend wheels first (before core/meta packages to avoid PyPI dependencies)
|
||||||
# This avoids the dependency resolution issue for new platforms
|
|
||||||
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
|
|
||||||
|
|
||||||
# Install backend wheels directly
|
|
||||||
uv pip install packages/leann-backend-hnsw/dist/*.whl
|
uv pip install packages/leann-backend-hnsw/dist/*.whl
|
||||||
uv pip install packages/leann-backend-diskann/dist/*.whl
|
uv pip install packages/leann-backend-diskann/dist/*.whl
|
||||||
|
|
||||||
|
# Then install core and meta packages
|
||||||
|
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
|
||||||
|
|
||||||
# Install test dependencies using extras
|
# Install test dependencies using extras
|
||||||
uv pip install -e ".[test]"
|
uv pip install -e ".[test]"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user