Skip to content

vtracer: add build-vtracer.yml for riscv64 wheels - #1435

Merged
luhenry merged 2 commits into
mainfrom
vtracer
Sep 8, 2026
Merged

vtracer: add build-vtracer.yml for riscv64 wheels#1435
luhenry merged 2 commits into
mainfrom
vtracer

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles the PyO3 binding for VTracer, a raster-to-vector image tracer. Upstream publishes no riscv64 wheel.

Mirrors upstream's python.yml linux job.

Differs from upstream

  • Rust toolchain installed via CIBW_BEFORE_ALL_LINUX - no [tool.cibuildwheel] upstream.
  • musllinux dropped - rustup ships no riscv64 musl toolchain.

Matrix: cp312/cp313 only - cp314 segfaults on the first string crossing FFI (pyo3 0.19.2 predates CPython 3.14's changed Unicode layout); cp314t dropped too, same pyo3 predates Py_GIL_DISABLED entirely.

Testing

  • Upstream ships no Python test suite; traces a small synthetic raster through convert_pixels_to_svg and checks the SVG contains a path.

License: OK

Rust/PyO3 (maturin) raster-to-vector tracer. pyo3 0.19.2, no abi3
feature, so the matrix builds per interpreter (cp312, cp313, cp314);
cp314t is dropped since this pyo3 predates Py_GIL_DISABLED entirely
and upstream ships no cp314t wheel either. No Python test suite
upstream, so CIBW_TEST_COMMAND traces a small synthetic raster and
checks the SVG actually contains a path.
luhenry added a commit that referenced this pull request Sep 7, 2026
pyo3 0.19.2 predates CPython 3.14's changed Unicode object layout;
convert_pixels_to_svg crossing a string back through FFI SIGSEGVs on
cp314 (confirmed by CI, PR #1435). Same signature and same pyo3
version as the markdown-it-pyrs port.
@luhenry
luhenry merged commit c831528 into main Sep 8, 2026
8 checks passed
@luhenry
luhenry deleted the vtracer branch September 8, 2026 08:34
@luhenry luhenry linked an issue Sep 8, 2026 that may be closed by this pull request
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.

vtracer riscv64 support

1 participant