pyopengl-accelerate: add build-pyopengl-accelerate.yml for riscv64 wheels - #1748
Open
luhenry wants to merge 2 commits into
Open
pyopengl-accelerate: add build-pyopengl-accelerate.yml for riscv64 wheels#1748luhenry wants to merge 2 commits into
luhenry wants to merge 2 commits into
Conversation
…eels Cython/setuptools build of PyOpenGL's compiled acceleration package (wrapper, formathandler, arraydatatype, errorchecker, vbo, nones_formathandler, latebind, buffers_formathandler, numpy_formathandler) - no OpenGL library linkage at build time, it's dlopen'd at runtime by pure-Python PyOpenGL. manylinux only: numpy has no riscv64 musllinux wheel anywhere, and it's a build-time requirement for numpy_formathandler. Runs the real upstream test suite (test_arraydatatypeaccel.py, test_numpyaccel.py) against the built wheel; OpenGL.GL binds libGL at import time on Linux even though the tests never create a real GL context, so CIBW_BEFORE_TEST_LINUX installs mesa-libGL. Includes a small pyproject.toml patch so the wheel ships license.txt under dist-info/licenses/ - the upstream table-form [project.license] suppresses setuptools' PEP 639 default glob (and the file is lowercased anyway, which the glob wouldn't match), so the real PyPI 3.1.10 wheel ships none either.
luhenry
added a commit
that referenced
this pull request
Sep 11, 2026
CIBW_TEST_REQUIRES was missing numpy, so most of the accelerate test suite self-skipped (20 passed, 33 skipped: 'Numpy not available') even though PyOpenGL and pytest installed fine. The license check also false-failed: the wheel's dist-info/licenses/ directory entry itself (name ending in '/') was included in the found set, rsplit-ing to an empty string alongside 'license.txt'.
luhenry
added a commit
that referenced
this pull request
Sep 11, 2026
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.
pyopengl-accelerate3.1.10Compiles nine small Cython acceleration modules for the pure-Python PyOpenGL package (array marshalling, format handlers, VBOs); no OpenGL library linkage at build time, it's dlopen'd at runtime by pure-Python PyOpenGL. Upstream publishes no riscv64 wheel.
Mirrors upstream's
accelerate-manylinux.yml.Differs from upstream
CIBW_BEFORE_TEST_LINUXinstallsmesa-libGL-OpenGL.GLbinds libGL at import time even though the tests never create a real context.Testing
test_arraydatatypeaccel.pyandtest_numpyaccel.pyagainst the built wheel, staged viaCIBW_TEST_SOURCES.License: OK
Patches
0001-pyproject.toml-declare-license-files-so-the-wheel-s.patch- To upstream. The legacy[project.license]table form suppresses setuptools' PEP 639 default license-files glob, so the wheel ships no licence file (same gap in the real PyPI wheel). Reproduces off riscv64.Built on cp312/cp313/cp314/cp314t manylinux_riscv64: 53 passed on each, publish dry-ran cleanly.