I'm looking at this TODO for the grpc_python_plugi...
# development
c
I'm looking at this TODO for the grpc_python_plugin (mac arm binaries) https://github.com/pantsbuild/pants/blob/7f4d142181cf5435e7cb9fe356ac5197cbcfd911/src/python/pants/backend/codegen/protobuf/python/grpc_python_plugin.py#L23https://github.com/pantsbuild/pants/pull/10927 says it included "along with a README.md explaining how to build and upload other versions" but uhh... I don't see a
README.md
(cc @happy-kitchen-89482) • There is also now https://github.com/nhurden/protoc-gen-grpc-python-prebuilt?tab=readme-ov-file but I'm not sure of the trustworthness • This is still a mess upstream https://github.com/grpc/grpc/issues/26125
h
That was saying that the README.md was uploaded to the binaries.pantsbuild.org S3 bucket
And it's still there
its content is
Copy code
To add new versions of `grpc_python_plugin`, do the following on Linux and MacOS:

1. Build grpc from sources, using the cmake instructions at <https://github.com/grpc/grpc/blob/master/BUILDING.md>.

2. Upload the `grpc_python_plugin` file using 
aws --profile=pants s3 cp --acl public-read \
  ./grpc_python_plugin \
  <s3://binaries.pantsbuild.org/bin/grpc_python_plugin/$REV/$PLATFORM/x86_64/grpc_python_plugin>

Where `$REV` is the grpc version (e.g., `1.32.0`) and `$PLATFORM` is `linux` or `macos`.
FWIW
c
I can take a stab at trying to build it, but
aws --profile=pants
is not a profile I have
h
ah right
if you're able to build it I can upload it
c
After looking at this more, I'm wondering if we should just point towards https://github.com/nhurden/protoc-gen-grpc-python-prebuilt (or fork the repo to 'run'/host it out of our github org) The cross-compiling instructions in https://github.com/grpc/grpc/ are very much an exercise for the reader