Skip to content

Commit

Permalink
fix(partner-sdk): updated the build, run script file permission and a…
Browse files Browse the repository at this point in the history
…dded detailed steps
  • Loading branch information
manjutapali committed Apr 15, 2024
1 parent 5141ac6 commit cd0d0eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/connector/python/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#!/bin/bash
# Creates virtual environment to install the packages and to run the connector.
python3 -m venv connector_run
source connector_run/bin/activate
# install the added packages
pip install -r requirements.txt

# copying protos present in the root of directory to `protos` folder
mkdir -p protos
cp ../../../*.proto protos/
pip install -r requirements.txt
# Generates the required gRPC Python files using protos into `sdk_pb2` folder
mkdir -p sdk_pb2
python -m grpc_tools.protoc \
--proto_path=./protos/ \
Expand Down
1 change: 1 addition & 0 deletions examples/connector/python/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# activate the created virtual environment during the build and run the main file.
source connector_run/bin/activate
python main.py
deactivate

0 comments on commit cd0d0eb

Please sign in to comment.