File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
examples/helloworld/python Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11package (default_visibility = ["//visibility:public" ])
22
3+ # Note: python grpc functionality in rules_protobuf is very
4+ # experimental. There is currently no support for fetching the
5+ # platform-specific grpcio wheel from pypi within bazel. To try this,
6+ # you'll have to `pip install grpcio` locally so it's available for
7+ # import.
8+
39py_binary (
410 name = "greeter_client" ,
511 srcs = [
612 "greeter_client.py" ,
13+ "//examples/proto:py" ,
714 "//examples/helloworld/proto:py" ,
815 ],
916)
Original file line number Diff line number Diff line change 3333
3434import grpc
3535
36- import helloworld_pb2
36+ #import helloworld_pb2
37+ from examples .helloworld .proto import helloworld_pb2
3738
3839def run ():
3940 channel = grpc .insecure_channel ('localhost:50051' )
You can’t perform that action at this time.
0 commit comments