Skip to content

liteparse: Add version 2.14.2 - #2333

Open
luhenry wants to merge 2 commits into
mainfrom
liteparse
Open

luhenry wants to merge 2 commits into
mainfrom
liteparse

Conversation

@luhenry

@luhenry luhenry commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

A PyO3 abi3 extension (with tesseract/leptonica statically linked) that loads a bundled libpdfium.so. Upstream publishes no riscv64 wheel.

Mirrors upstream's release-python.yml, and run-llama/pdfium-binaries' build.yml for libpdfium.

Differs from upstream

  • libpdfium built with the fork's own recipe for riscv64 - the fork publishes no linux-riscv64 asset
  • libpdfium cross-compiled on x64, like the fork's linux-arm64 build
  • manylinux_2_39 image - no riscv64 2_28 image exists
  • musllinux dropped - no riscv64 musl Rust toolchain

Matrix: one cp310-abi3 wheel, as upstream ships; tested on cp312.

Testing

  • same as upstream

License: Wheel bundles PDFium (BSD-3-Clause, plus its FreeType/libjpeg-turbo/libpng/ICU/Abseil/zlib notices), tesseract (Apache-2.0) and leptonica (BSD-2-Clause); upstream ships no licence text for them, so the build adds it.

liteparse is a PyO3/maturin abi3-py310 extension that dlopen()s a
libpdfium.so bundled next to it. Upstream downloads that library from
run-llama/pdfium-binaries (a PDFium fork adding extra FPDF* APIs the
extension requires), which publishes no linux-riscv64 asset.

Build it with the fork's own recipe at the release liteparse pins
(read from crates/pdfium-sys/build.rs), cross-compiled from x64 with
target_cpu=riscv64 exactly as the fork does for linux-arm64, then build
the wheel natively on riscv64 with upstream's maturin-action job and run
upstream's test-wheels checks against it.
luhenry added a commit that referenced this pull request Sep 25, 2026
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://riseproject-dev.github.io/python-wheels/pr-preview/pr-2333/

Built to branch gh-pages at 2026-09-25 17:50 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

The pdfium build stopped at `gn gen`: PDFium's forked skia/BUILD.gn asserts
"Unsupported target CPU riscv64" in skia_opts, reached through the root
BUILD.gn's gn_check group (//skia is a dep whenever checkout_skia is set, as
it is for checkout_configuration=small) even though pdf_use_skia is false.

Carry the empty riscv64 branch Chromium's own skia/BUILD.gn already has,
applied to the gclient checkout right after pdfium-binaries' own patches.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant