Skip to content

armgit / LEANN

Public Imported from GitHub
0

[MLsys2026 Best Paper]: https://arxiv.org/abs/2506.08276. RAG on Everything with LEANN. Enjoy 97% storage savings while running a fast, accurate, and 100% private RAG application on your personal device.

fix: handle pure Python packages in cibuildwheel workflow

Andy Leec4a0a68581d7
diff --git a/.github/workflows/build-cibuildwheel.yml b/.github/workflows/build-cibuildwheel.yml
index b5b38ef..023dc2d 100644
--- a/.github/workflows/build-cibuildwheel.yml
+++ b/.github/workflows/build-cibuildwheel.yml
@@ -24,16 +24,21 @@ jobs:
ref: ${{ inputs.ref }}
submodules: recursive
- # Build each package separately in our monorepo
- - name: Build leann-core wheels
- uses: pypa/[email protected]
+ - name: Setup Python
+ uses: actions/setup-python@v5
with:
- package-dir: packages/leann-core
- output-dir: wheelhouse
- env:
- CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
- CIBW_SKIP: "*-win32 *-manylinux_i686 pp*"
- # Pure Python package, no special requirements
+ python-version: '3.11' # Version for building pure Python packages
+
+ # Build each package separately in our monorepo
+ - name: Build pure Python packages (leann-core, leann)
+ if: matrix.os == 'ubuntu-latest' # Only build once, they're platform-independent
+ run: |
+ # Install build tools
+ python -m pip install --upgrade pip build
+
+ # Build pure Python packages
+ python -m build packages/leann-core --outdir wheelhouse/
+ python -m build packages/leann --outdir wheelhouse/
- name: Build leann-backend-hnsw wheels
uses: pypa/[email protected]
@@ -85,15 +90,10 @@ jobs:
CIBW_TEST_REQUIRES: leann-core numpy
CIBW_TEST_COMMAND: python -c "import leann_backend_diskann"
- - name: Build leann meta-package
- uses: pypa/[email protected]
- with:
- package-dir: packages/leann
- output-dir: wheelhouse
- env:
- CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
- CIBW_SKIP: "*-win32 *-manylinux_i686 pp*"
- # Pure Python meta-package
+ - name: List built packages
+ run: |
+ echo "📦 Built packages:"
+ ls -la wheelhouse/
- uses: actions/upload-artifact@v4
with: