Conversation
Mirrors upstream's build-wheels.yml (cibuildwheel + config.sh's GLPK build), narrowed to Linux/manylinux_riscv64. GLPK has no riscv64 distro package, so it is built from the pinned upstream tarball; swig and gmp-devel come from Rocky 10's repos instead of upstream's from-source builds. Adds a gpl_sources job collecting gcc/gmp RPM sources plus the pinned GLPK tarball, since the wheel vendors all three.
luhenry
added a commit
that referenced
this pull request
Sep 7, 2026
GLPK 5.0's bundled config.guess/config.sub (2012-era) don't recognize riscv64, so ./configure died with "cannot guess build type" on the riscv64 CI job (cp313/cp314 failed). Swap in automake's copies before configuring (gotcha 138), the same fix used for libspatialite.
glpk.i at tag 5.0.13 still calls PyInt_Check/PyInt_AsLong (Python 2 only). The riscv64 manylinux image's GCC treats the resulting implicit declarations as hard errors, failing every interpreter's build. Upstream fixed this on master (fbf4c5ff2, 2026-09-04) after the 5.0.13 release; backport that single-hunk fix as a patch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
swiglpk5.0.13Compiles SWIG-generated Python bindings around GLPK, the GNU linear/mixed-integer programming kit. Upstream publishes no riscv64 wheel.
Mirrors upstream's
build-wheels.yml.Differs from upstream
CIBW_BEFORE_ALL_LINUX- runs once, not per interpreter like upstream'sbefore-build--libdir=/usr/lib64- riscv64 autotools default (/usr/lib) isn't on the linker pathTesting
License: Wheel bundles GLPK (GPL-3.0, embedding LGPL-2.1 AMD/COLAMD and MIT MiniSat) and GMP (LGPL-3.0/GPL-2.0); upstream ships no licence text for them, so the build adds it and a
gpl_sourcesjob publishes their sources.Patches
0001-Use-the-Python-3-long-API-in-as_intArray.patch- Backport [https://github.com/biosustain/swiglpk/commit/fbf4c5ff246ea0c9fce1b8d60a7fa038bd994020]. Without it, PyInt_Check/PyInt_AsLong (Python 2 API) fail as implicit-declaration errors on the riscv64 image's GCC. Reproduces on any platform whose compiler errors on implicit declarations, not riscv64-only.Built on cp312; 1 passed, 0 skipped.