Skip to content

c2pa-python: add build-c2pa-python.yml for riscv64 wheels - #1818

Merged
luhenry merged 1 commit into
mainfrom
c2pa-python
Sep 12, 2026
Merged

luhenry merged 1 commit into
mainfrom
c2pa-python

Conversation

@luhenry

@luhenry luhenry commented Sep 12, 2026

Copy link
Copy Markdown
Member

Packages a libc2pa_c.so built from the pinned contentauth/c2pa-rs C-API crate and loaded via ctypes; the wheel carries no CPython ABI tag. Upstream publishes no riscv64 wheel.

Mirrors the Linux job of upstream's build-wheel.yml.

Differs from upstream

  • Builds libc2pa_c.so from source instead of downloading it - c2pa-rs ships no riscv64 release asset.
  • Runs natively on ubuntu-24.04-riscv instead of cross-compiling in a x86_64 container.

Testing

  • same as upstream

License: Upstream's own wheel ships no licence text on any platform ([tool.setuptools] license-files = []); the patch points it at the project's existing LICENSE-MIT/LICENSE-APACHE instead.

Patches

  • 0001-add-riscv64-to-the-platform-identifier-tables.patch - To upstream (blocked: no cross-repo PRs). setup.py's platform detection falls through to x86_64 on a native riscv64 host.
  • 0002-ship-the-project-s-own-LICENSE-MIT-and-LICENSE-APACH.patch - To upstream (blocked: no cross-repo PRs). Closes the licence gap above.

Built on cp312; full upstream test suite run against the installed wheel.

@luhenry
luhenry merged commit a39bce7 into main Sep 12, 2026
6 checks passed
@luhenry
luhenry deleted the c2pa-python branch September 12, 2026 19:33
@luhenry luhenry linked an issue Sep 12, 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.

c2pa-python riscv64 support

1 participant