Skip to content

python-rtmidi: add build-python-rtmidi.yml for riscv64 wheels - #1374

Merged
luhenry merged 1 commit into
mainfrom
python-rtmidi
Sep 7, 2026
Merged

python-rtmidi: add build-python-rtmidi.yml for riscv64 wheels#1374
luhenry merged 1 commit into
mainfrom
python-rtmidi

Conversation

@luhenry

@luhenry luhenry commented Sep 7, 2026

Copy link
Copy Markdown
Member

Compiles python-rtmidi's Cython/C++ binding over the RtMidi library (ALSA and JACK backends on Linux) into a CPython extension wheel. Upstream publishes no riscv64 wheel.

Mirrors upstream's own pyproject.toml cibuildwheel config and pr_to_master.yml.

Differs from upstream

  • Pins CIBW_MANYLINUX_RISCV64_IMAGE - upstream's [tool.cibuildwheel.linux] only configures x86_64/aarch64 images.
  • Patches pyproject.toml to declare license-files - meson-python has no default licence glob.

Matrix: cp312 only - upstream 1.5.8 builds no cp313+/cp314+ wheels either.

Testing

  • same as upstream

License: Wheel bundles libjack.so.0 (LGPL-2.1+, built from source in before-all just like upstream's own wheels), whose licence text the accompanying patch adds since meson-python doesn't apply setuptools' default license-files glob.

Patches

  • 0001-pyproject.toml-declare-license-files-so-the-wheel-sh.patch - Upstream-Status: To upstream (not filed, per repo policy against opening anything on third-party repos). Wheel would otherwise ship without jack2's licence notice. Reproduces on any platform (metadata-only change).

Built on riscv64 CI - see checks below.

Build-from-checkout shape (jack2 1.9.22 built from source in
CIBW_BEFORE_ALL, alsa-lib-devel installed via dnf, both inherited from
upstream's own pyproject.toml [tool.cibuildwheel] config), single cp312
job (upstream 1.5.8 builds no cp313+/cp314+ wheels either). Patches
pyproject.toml so meson-python ships jack2's LGPL licence alongside the
package's own MIT one (meson-python has no PEP 639 default license-files
glob).
@luhenry
luhenry merged commit 735c2d1 into main Sep 7, 2026
6 checks passed
@luhenry
luhenry deleted the python-rtmidi branch September 7, 2026 16:05
@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.

python-rtmidi riscv64 support

1 participant