Skip to content

mecab: add build-mecab.yml for riscv64 wheels - #1390

Merged
luhenry merged 4 commits into
mainfrom
mecab
Sep 7, 2026
Merged

mecab: add build-mecab.yml for riscv64 wheels#1390
luhenry merged 4 commits into
mainfrom
mecab

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles a SWIG binding over shogo82148's actively-maintained MeCab fork into a per-interpreter wheel. Upstream publishes no riscv64 wheel.

Mirrors upstream's test-linux-python.yml for building and installing libmecab; upstream's own release job drives a similar recipe in .github/build-wheel-linux.sh.

Differs from upstream

  • Installs gettext-devel before autogen.sh - configure.ac's AM_ICONV needs its m4 macros, absent from the manylinux image.

Testing

  • Installs unidic-lite and tokenizes a sample sentence, mirroring the sibling mecab-python3 port's approach - upstream's own test.py needs a built mecab-ipadic, heavier than a pure-Python dictionary.

License: OK

Patches

  • 0001-Add-LICENSE-matching-setuptools-default-license_files-glob.patch - To upstream, blocked (this port may only touch riseproject-dev/python-wheels). Without it, the wheel's dist-info/licenses/ carries only COPYING/AUTHORS, not the BSD text the package declares itself under - reproduces off riscv64 too.

Built on cp312/cp313/cp314/cp314t manylinux_riscv64 in CI; all 4 wheels built and the tokenization test passed.

luhenry added a commit that referenced this pull request Sep 7, 2026
@luhenry
luhenry merged commit fc68073 into main Sep 7, 2026
10 checks passed
@luhenry
luhenry deleted the mecab branch September 7, 2026 16:09
@luhenry luhenry mentioned this pull request Sep 7, 2026
@luhenry luhenry linked an issue Sep 7, 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.

mecab riscv64 support

1 participant