Skip to content
Snippets Groups Projects
Commit 94b82355 authored by Masood Malekghassemi's avatar Masood Malekghassemi
Browse files

Patch overlooked strings from Python un-namespacing

parent d0e336ab
No related branches found
No related tags found
No related merge requests found
include grpc_version.py include grpc_version.py
include health_commands.py include health_commands.py
graft grpc graft grpc_health
global-exclude *.pyc global-exclude *.pyc
...@@ -2,6 +2,6 @@ include grpc_version.py ...@@ -2,6 +2,6 @@ include grpc_version.py
include protoc_deps.py include protoc_deps.py
include protoc_lib_deps.py include protoc_lib_deps.py
include README.rst include README.rst
graft grpc graft grpc_tools
graft grpc_root graft grpc_root
graft third_party graft third_party
...@@ -45,7 +45,7 @@ def build_package_protos(package_root): ...@@ -45,7 +45,7 @@ def build_package_protos(package_root):
for proto_file in proto_files: for proto_file in proto_files:
command = [ command = [
'grpc.tools.protoc', 'grpc_tools.protoc',
'--proto_path={}'.format(inclusion_root), '--proto_path={}'.format(inclusion_root),
'--python_out={}'.format(inclusion_root), '--python_out={}'.format(inclusion_root),
'--grpc_python_out={}'.format(inclusion_root), '--grpc_python_out={}'.format(inclusion_root),
......
...@@ -45,5 +45,5 @@ def main(command_arguments): ...@@ -45,5 +45,5 @@ def main(command_arguments):
return _protoc_compiler.run_main(command_arguments) return _protoc_compiler.run_main(command_arguments)
if __name__ == '__main__': if __name__ == '__main__':
proto_include = pkg_resources.resource_filename('grpc.tools', '_proto') proto_include = pkg_resources.resource_filename('grpc_tools', '_proto')
sys.exit(main(sys.argv + ['-I{}'.format(proto_include)])) sys.exit(main(sys.argv + ['-I{}'.format(proto_include)]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment