grpcio-tools: Add riscv64 wheel build - #843
Draft
luhenry wants to merge 1 commit into
Draft
Conversation
luhenry
force-pushed
the
grpcio-tools
branch
from
September 3, 2026 13:47
bd03367 to
cc3cf87
Compare
grpcio-tools compiles grpc's protoc codegen plugin from the same grpc/grpc source tree as grpcio, already ported in build-grpcio.yml. Upstream publishes no riscv64 wheel.
luhenry
force-pushed
the
grpcio-tools
branch
from
September 3, 2026 13:52
cc3cf87 to
62cad9a
Compare
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.
grpcio-tools1.83.1Compiles gRPC's protoc codegen plugin (
grpc_tools._protoc_compiler) into a native extension used to generate Python/gRPC code from.protofiles. Upstream publishes no riscv64 wheel.Mirrors this repo's
build-grpcio.yml- samegrpc/grpcsource tree, same cibuildwheel/ccache pattern; upstream builds these internally via Bazel/Kokoro, not a public GH Actions workflow.Differs from upstream
package-dir: tools/distrib/python/grpcio_tools, since the package lives nested in the monorepo rather than at its root like grpcio.tools/distrib/python/make_grpcio_tools.pybefore the build - it stagesgrpc_root/third_partysources upstream's owninstall_all_python_modules.shalso depends on, with the bazel-query step it also attempts failing non-fatally (falls back to the deps list already committed for this tag).Matrix: cp312/cp313/cp314 only, same as
build-grpcio.yml- grpcio-tools sharespython_version.py's supported range and declares no free-threaded support.Testing
python -m grpc_tools.protoc --help, matching upstream's own binary distribtest (test/distrib/python/test_packages.sh)grpc_tools/test/protoc_test.py, generatingcomplicated_pb2with a plainprotocinvocation in place of the Bazelpy_proto_librarytarget it normally relies onLicense: OK
CI confirms the build itself: all three interpreters compile and auditwheel-repair cleanly.
grpcio-toolspinsgrpcio>=1.83.1; the registry only has up to1.78.0(1.83.1 is in open #836), soCIBW_TEST_ENVIRONMENT: PIP_ONLY_BINARY=:all:fails fast at wheel-install instead of falling back to an hours-long from-source grpcio build. Draft until #836 lands.