Skip to content

cantera: build riscv64 wheels for 3.2.0 - #2352

Merged
luhenry merged 2 commits into
mainfrom
cantera
Sep 26, 2026
Merged

luhenry merged 2 commits into
mainfrom
cantera

Conversation

@luhenry

@luhenry luhenry commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Compiles Cantera's C++ core and its Cython bindings into one extension. Upstream publishes no riscv64 wheel.

Mirrors upstream's python-package.yml.

Differs from upstream

  • Dependencies built in before-all from upstream's base-image superbuild - no riscv64 image
  • build-frontend = "build" instead of build[uv] - no host uv on the runner

Testing

  • test/ staged through test-sources instead of the /host mount
  • cp314t runs without the pandas extra (no free-threaded riscv64 wheel), which skips test_onedim.py

License: Wheel bundles fmt and yaml-cpp (MIT), HDF5, zlib, libaec, OpenBLAS, SUNDIALS (BSD-style), Eigen (MPL-2.0), HighFive and Boost (BSL-1.0) and libgfortran (GPL-3.0 with runtime exception); upstream ships no licence text for them, so the build adds it.

Patches

  • 0001-python_sdist-ship-licence-files-of-bundled-libraries.patch - To upstream [needs a companion base-image change]. Without it the bundled licences are not packaged. Not riscv64-specific.
  • 0002-Python-Fix-species-slicing-error-with-Numpy-2.4.0-dev.patch - Backport [Fix species slicing error with Numpy 2.4.0 dev version Cantera/cantera#2063]. Without it species slicing raises cannot resize an array on Python 3.14 with NumPy 2.4+. Reproduces on x86_64 with upstream's own wheel.

luhenry added a commit that referenced this pull request Sep 26, 2026
@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-26 09:58 UTC

luhenry added a commit that referenced this pull request Sep 26, 2026
@luhenry
luhenry merged commit e321049 into main Sep 26, 2026
17 checks passed
@luhenry
luhenry deleted the cantera branch September 26, 2026 07:58
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