aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/python/grpcio
diff options
context:
space:
mode:
authorGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2015-12-21 12:16:50 -0800
committerGravatar Masood Malekghassemi <soltanmm@users.noreply.github.com>2016-01-07 09:43:42 -0800
commit0467295ee6555d778bda27b3d12a6bbb3f02efa0 (patch)
tree5319b7c2b651a7ea74eae4b65acc0ea0bebf1b13 /src/python/grpcio
parent4352e8745ebb51bf23e43479330cb925b185a6d7 (diff)
Fail test build if protoc can't be found
Diffstat (limited to 'src/python/grpcio')
-rw-r--r--src/python/grpcio/commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
index 7450e5b455..4b172142b1 100644
--- a/src/python/grpcio/commands.py
+++ b/src/python/grpcio/commands.py
@@ -103,6 +103,11 @@ class BuildProtoModules(setuptools.Command):
'grpc_python_plugin')
def run(self):
+ if not self.protoc_command:
+ raise Exception('could not find protoc')
+ if not self.grpc_python_plugin_command:
+ raise Exception('could not find grpc_python_plugin '
+ '(protoc plugin for GRPC Python)')
include_regex = re.compile(self.include)
exclude_regex = re.compile(self.exclude) if self.exclude else None
paths = []