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 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