Skip to content

gensim: add build-gensim.yml for riscv64 wheels - #945

Merged
luhenry merged 3 commits into
mainfrom
gensim
Sep 5, 2026
Merged

gensim: add build-gensim.yml for riscv64 wheels#945
luhenry merged 3 commits into
mainfrom
gensim

Conversation

@luhenry

@luhenry luhenry commented Sep 4, 2026

Copy link
Copy Markdown
Member

gensim compiles ten Cython/C++ extensions (word2vec/doc2vec/fasttext inner loops, corpus readers, matrix utils) via setuptools, built against numpy and scipy. Upstream publishes no riscv64 wheel.

Mirrors upstream's build-wheels.yml build_wheels job.

Differs from upstream

  • manylinux_riscv64 image, and numpy/scipy resolved from the RISE registry.

Testing

  • same as upstream

License: OK

Built on cp312; pending CI.

…est failures

test_api.py's dataset-loading tests need network access to gensim-data
unavailable in this CI sandbox on every interpreter. test_corpora.py's
TestWikiCorpus and test_scripts.py's TestSegmentWiki tests fail only on
cp314/cp314t: gensim's multiprocessing pool pickles a WikiCorpus object
whose corpus attribute is a live generator, which the stdlib pickle
module has never supported - something in Python 3.14 newly surfaces
this pre-existing bug. Upstream's own CI already excludes cp314* via
CIBW_SKIP (gensim 4.4.0 doesn't yet officially support 3.14).
test_word2vec.py::TestWord2VecModel::test_parallel and
test_ldamodel.py::TestLdaMulticore::test_passes failed on cp313 and
cp314t respectively, each with a different single-test failure not
reproduced by the other three interpreters running identical code.
Both are documented in gensim's own source as timing/randomization
sensitive multi-worker training checks, not riscv64 bugs.
@luhenry
luhenry merged commit 6b3ae06 into main Sep 5, 2026
9 checks passed
@luhenry
luhenry deleted the gensim branch September 5, 2026 12:12
@luhenry luhenry mentioned this pull request Sep 5, 2026
@luhenry luhenry linked an issue Sep 5, 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.

gensim riscv64 support

1 participant