aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Boutier <charliebout@google.com>2022-03-22 15:12:50 +0000
committerCharlie Boutier <charliebout@google.com>2022-03-22 16:13:41 +0000
commit11a318b092a9826d3aab528cd41533ce10afe216 (patch)
treec49cc28626b72f5d21a75a21fe486ff1c3638c68
parent3cadac0953fb0a21c6546368daf9dd47c54855f1 (diff)
downloadmmi2grpc-11a318b092a9826d3aab528cd41533ce10afe216.tar.gz
setup: Add all proto file located into proto/blueberry
Change-Id: I3298139c99349407a2efdd9d18921fb09e76b4e4
-rwxr-xr-xsetup.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 8e54d32..a01b877 100755
--- a/setup.py
+++ b/setup.py
@@ -25,15 +25,14 @@ class BuildGrpc(Command):
proto_include = pkg_resources.resource_filename('grpc_tools', '_proto')
+ files = [f'blueberry/{f}' for f in os.listdir('proto/blueberry') if f.endswith('.proto')]
protoc.main([
'grpc_tools.protoc',
'-Iproto',
f'-I{proto_include}',
'--python_out=.',
'--custom_grpc_out=.',
- 'blueberry/host.proto',
- 'blueberry/a2dp.proto'
- ])
+ ] + files)
class BuildPyCommand(build_py):