From 810230116a2235bbd3aea44139cbcef54ccd50a4 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 12:09:30 +0000 Subject: [PATCH 1/2] pylance: Add version 13.0.0 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/pylance.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/packages/pylance.yaml b/docs/packages/pylance.yaml index 9ce650c6f1f4..5f26958f83fa 100644 --- a/docs/packages/pylance.yaml +++ b/docs/packages/pylance.yaml @@ -15,3 +15,4 @@ versions: - filename: pylance-12.0.0-cp310-abi3-manylinux_2_39_riscv64.whl sha256: 7fb0cc9df867f22213ac795a7c590c5b5bc8ad00192165a367f4e2c5fe625fa8 requires-python: '>=3.10' +- version: 13.0.0 From 2ecf7a901b53026878393e9f714776c3d0981079 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Fri, 23 Oct 2026 09:11:54 +0800 Subject: [PATCH 2/2] pylance: apply the SIMD patch only for versions that have one From 13.0.0 lance's lance-linalg build.rs emits cfg(simd_fallback) for every architecture without SIMD kernels and backs the vector types with arrays, so the riscv64 patch is obsolete and has no 13.0.0 directory. --- .github/workflows/build-pylance.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-pylance.yml b/.github/workflows/build-pylance.yml index 9b3ca2f4374f..60d44bf5ccff 100644 --- a/.github/workflows/build-pylance.yml +++ b/.github/workflows/build-pylance.yml @@ -75,9 +75,16 @@ jobs: # lance-core's SIMD_SUPPORT already has a portable riscv64 fallback, but # lance-linalg's f32x8/f32x16/i32x8/f64x4/f64x8 SIMD types still compile # only for x86_64/aarch64/loongarch64 upstream (unlike u8x16/u8x32, which - # already have one); see patches/pylance/11.0.0/0001*.patch. + # already have one); see patches/pylance/11.0.0/0001*.patch. From 13.0.0 lance + # emits cfg(simd_fallback) for every other architecture (rust/lance-linalg/build.rs) + # and backs those vector types with arrays, so later versions need no patch and a + # missing directory is not an error. - name: Apply pylance patches - run: git apply -v python-wheels/patches/pylance/${{ env.PYLANCE_VERSION }}/0001*.patch + run: | + patches="$PWD/python-wheels/patches/pylance/${PYLANCE_VERSION}" + if [ -d "$patches" ]; then + git apply -v "$patches"/0001*.patch + fi - name: Free disk space uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1