forked from tinode/chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
425 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Generate python gRPC bindings for Tinode. A command line parameter v=XX will use specified python version, | ||
# i.e. ./generate-python.sh v=3 will use python3. | ||
|
||
for line in $@; do | ||
eval "$line" | ||
done | ||
|
||
python="python${v}" | ||
|
||
# This generates python gRPC bindings for Tinode. | ||
python -m grpc_tools.protoc -I../pbx --python_out=../py_grpc/tinode_grpc --grpc_python_out=../py_grpc/tinode_grpc ../pbx/model.proto | ||
$python -m grpc_tools.protoc -I../pbx --python_out=../py_grpc/tinode_grpc --grpc_python_out=../py_grpc/tinode_grpc ../pbx/model.proto | ||
# Bindings are incompatible with Python packaging system. This is a fix. | ||
python py_fix.py | ||
$python py_fix.py |
Oops, something went wrong.