aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/RxLibrary/GRXImmediateWriter.m
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mmx@google.com>2017-11-13 14:16:21 -0800
committerGravatar Mehrdad Afshari <mmx@google.com>2017-11-15 16:36:25 -0800
commit9d1ba2efd9ae4db1833eb9b58a76bbc5eaebac72 (patch)
tree304115ae9271a4d747e4239c9ca0e7e610a7f08d /src/objective-c/RxLibrary/GRXImmediateWriter.m
parente52772451a7bbf4f3f7b72cfc369781fd74a6930 (diff)
Fix grpcio_{health_checking,reflection} packaging
The previous packaging structure exhibited strange behavior of slowness when trying to use pip to install grpcio-reflection or grpcio-health-checking in a single line with grpcio-tools. The root cause seems to be the complicated interaction between pip and setuptools and the fact that we ship a single .tar.gz "source" archive for `grpcio_reflection` and `grpcio_health_checking` packages. `pip` tries to build this "source" package, and our build process wants to generate code for the `.proto` files in the package. However, we have already processed the `.proto` files into `_pb2.py` files in our artifact build process, and installing `grpcio_tools` to get `grpcio_{reflection,health_checking}` seems excessive. The behavior gets worse since `setuptools`, while building the package from source, tries to fetch `grpcio_tools` from source and build that too. This takes a while, since it involves compiling a bunch of native code from `protobuf` and `grpc` and requires a C compiler to boot. This commit modifies the Python artifact for the two packages so that they will not include the raw `.proto` files in the distribution uploaded to PyPI, nor would they contain the Python module that does the preprocessing code generation from the respective .proto files. Instead, a specific code path is taken when the generated `_pb2_grpc` Python module is not present in the package to provide such functionality when built from the gRPC git repository (and hence when built from our CI infrastructure.)
Diffstat (limited to 'src/objective-c/RxLibrary/GRXImmediateWriter.m')
0 files changed, 0 insertions, 0 deletions