Conversation
luhenry
added a commit
that referenced
this pull request
Sep 21, 2026
Contributor
|
Build the Bullet Physics Python bindings for riscv64. setup.py compiles the Bullet3 C++ sources directly into the pybullet and eglRenderer extension modules; every SSE and x86 asm path is already gated on __i386__/__x86_64__, so no patch is needed. 3.2.7 was released without a git tag, so the workflow pins the release commit; its tree is byte-identical to the PyPI sdist. pybullet.c hands PyObject* to numpy's PyArrayObject* accessors. GCC 13, which upstream's manylinux2014 image ships, only warns; the GCC 14.3.1 in manylinux_2_39_riscv64 makes -Wincompatible-pointer-types a hard error, so the build passes -Wno-error for it.
luhenry
added a commit
that referenced
this pull request
Sep 21, 2026
luhenry
marked this pull request as ready for review
September 21, 2026 13:45
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.
pybullet3.2.7Compiles the Bullet Physics SDK's C++ sources into the
pybulletandeglRendererextension modules. Upstream publishes no riscv64 wheel.Mirrors upstream's
wheel.sh— manylinux container,pip install -r requirements.txt,pip wheel,auditwheel repair.Differs from upstream
setup.pyenables its numpy paths from a plainimport numpy.CFLAGS=-Wno-error=incompatible-pointer-types—pybullet.chandsPyObject*to numpy'sPyArrayObject*accessors, which GCC 14 rejects and GCC 13 only warned about.Testing
examples/pybullet/unittests— upstream's own test loop inwheel.shis boilerplate that installs an unrelated package.data/beside those tests, which resolver2d2.urdfand friends through bullet's relative search path.License: OK
Built on cp312; 18 passed, 0 skipped.