Skip to content
Snippets Groups Projects
Commit 4e2f7727 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

rename grpc.protoc.compiler to grpc.tools.protoc

parent 6f0fe0f3
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,6 @@ done ...@@ -61,6 +61,6 @@ done
# TODO(jtattermusch): add a .proto file to the distribtest, generate python # TODO(jtattermusch): add a .proto file to the distribtest, generate python
# code from it and then use the generated code from distribtest.py # code from it and then use the generated code from distribtest.py
$PYTHON -m grpc.protoc.compiler $PYTHON -m grpc.tools.protoc
$PYTHON distribtest.py $PYTHON distribtest.py
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "src/compiler/python_generator.h" #include "src/compiler/python_generator.h"
#include "grpc/protoc/main.h" #include "grpc/tools/main.h"
int protoc_main(int argc, char* argv[]) { int protoc_main(int argc, char* argv[]) {
google::protobuf::compiler::CommandLineInterface cli; google::protobuf::compiler::CommandLineInterface cli;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
import sys import sys
from grpc.protoc import protoc_compiler from grpc.tools import protoc_compiler
if __name__ == '__main__': if __name__ == '__main__':
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
from libc cimport stdlib from libc cimport stdlib
cdef extern from "grpc/protoc/main.h": cdef extern from "grpc/tools/main.h":
int protoc_main(int argc, char *argv[]) int protoc_main(int argc, char *argv[])
def run_main(list args not None): def run_main(list args not None):
......
...@@ -45,13 +45,13 @@ import grpc_version ...@@ -45,13 +45,13 @@ import grpc_version
def protoc_ext_module(): def protoc_ext_module():
plugin_sources = [ plugin_sources = [
'grpc/protoc/main.cc', 'grpc/tools/main.cc',
'grpc_root/src/compiler/python_generator.cc'] + [ 'grpc_root/src/compiler/python_generator.cc'] + [
os.path.join('third_party/protobuf/src', cc_file) os.path.join('third_party/protobuf/src', cc_file)
for cc_file in protoc_lib_deps.CC_FILES] for cc_file in protoc_lib_deps.CC_FILES]
plugin_ext = extension.Extension( plugin_ext = extension.Extension(
name='grpc.protoc.protoc_compiler', name='grpc.tools.protoc_compiler',
sources=['grpc/protoc/protoc_compiler.pyx'] + plugin_sources, sources=['grpc/tools/protoc_compiler.pyx'] + plugin_sources,
include_dirs=[ include_dirs=[
'.', '.',
'grpc_root', 'grpc_root',
......
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