Example #1
0
def _build_test_protos():
    compiler.generate_proto('../test/proto/search.proto', 'tests')
    compiler.generate_proto(
            '../test/proto/search.proto', 'tests',
            with_plugin='python_rpcz', suffix='_rpcz.py',
            plugin_binary=
                BUILD_DIR + '/src/rpcz/plugin/python/protoc-gen-python_rpcz')
Example #2
0
def _build_test_protos():
    compiler.generate_proto('../test/proto/search.proto', 'tests')
    compiler.generate_proto(
            '../test/proto/search.proto', 'tests',
            with_plugin='python_rpcz', suffix='_rpcz.py',
            plugin_binary=
                BUILD_DIR + '/src/rpcz/plugin/python/protoc-gen-python_rpcz')
Example #3
0
def _build_test_protos():
    compiler.generate_proto("../test/proto/search.proto", "tests")
    compiler.generate_proto(
        "../test/proto/search.proto",
        "tests",
        with_plugin="python_rpcz",
        suffix="_rpcz.py",
        plugin_binary="../build/src/rpcz/plugin/python/protoc-gen-python_rpcz",
    )
Example #4
0
def _build_test_protos():
    generate_proto(
		'../test/proto/search.proto',
		'tests'
	)
    generate_proto(
		'../test/proto/search.proto',
		'tests',
		with_plugin='python_rpcz',
		suffix='_rpcz.py',
		plugin_binary='../build/src/rpcz/plugin/python/protoc-gen-python_rpcz'
	)
Example #5
0
 def _compile_module(self, proto, outdir, init_file=None):
     is_rpcz = False
     if isinstance(proto, tuple):
         is_rpcz = proto[1]
         proto = proto[0]
     proto_base = path.basename(proto).replace('.proto', '')
     generate_proto(proto, outdir, include_dirs=self.include_dirs,
                    suffix='_pb2.py', verbose=True)
     if init_file:
         import_everything(init_file, proto_base + '_pb2')
     if is_rpcz:
         generate_proto(proto, outdir, include_dirs=self.include_dirs,
                        with_plugin='python_rpcz', suffix='_rpcz.py',
                        verbose=True)
         if init_file:
             import_everything(init_file, proto_base + '_rpcz')
Example #6
0
def _build_rpcz_proto():
    compiler.generate_proto('../src/rpcz/proto/rpcz.proto', 'rpcz')
Example #7
0
def _build_rpcz_proto():
    compiler.generate_proto("../src/rpcz/proto/rpcz.proto", "rpcz")
Example #8
0
def _build_rpcz_proto():
    compiler.generate_proto('../src/rpcz/proto/rpcz.proto', 'rpcz')
Example #9
0
def _build_rpcz_proto():
    generate_proto(
        '../build/src/rpcz/proto/rpcz.proto',
        'rpcz'
    )