Skip to content

python-flint: Add version 0.9.0 - #2722

Merged
luhenry merged 1 commit into
mainfrom
python-flint
Oct 8, 2026
Merged

luhenry merged 1 commit into
mainfrom
python-flint

Conversation

@luhenry

@luhenry luhenry commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Cython bindings over the FLINT C library (arbitrary-precision number theory), which itself needs GMP+MPFR. Upstream's own cibuildwheel recipe already builds GMP+MPFR+FLINT from source per architecture via bin/cibw_before_all_linux_$(uname -m).sh; this PR adds the riscv64 variant of that script.

Differs from upstream

  • Adds bin/cibw_before_all_linux_riscv64.sh (new file, mirrors the existing x86_64/aarch64 scripts).

Why it's feasible: GMP 6.3.0 has a native riscv64 assembly path; FLINT 3.6.0 has no riscv64-specific branch and falls through to its portable generic/no-asm C path (same path it already uses for s390x/ppc64le). Verified live under quay.io/pypa/manylinux_2_39_riscv64: GMP and MPFR configure/build/install cleanly, and FLINT's own configure + build compiles cleanly through its core modules on riscv64.

Matrix: cp312/cp313/cp314/cp314t (default). CIBW_TEST_COMMAND uses upstream's own built-in self-test runner (python -m flint.test -q).

License: MIT (python-flint itself); wheel bundles LGPL-3.0-or-later GMP/MPFR/FLINT, handled by upstream's own unmodified repair-wheel license step - no gpl_sources job needed since we build from pristine upstream tarballs, not distro packages.

luhenry added a commit that referenced this pull request Oct 5, 2026
@github-actions

github-actions Bot commented Oct 5, 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-2722/

Built to branch gh-pages at 2026-10-05 14:07 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@luhenry
luhenry marked this pull request as ready for review October 5, 2026 15:35
@luhenry
luhenry merged commit 7e3dd12 into main Oct 8, 2026
14 of 15 checks passed
@luhenry
luhenry deleted the python-flint branch October 8, 2026 14:39
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