From 02d714bbf3934aa38a0f7021a07b3015092f62c2 Mon Sep 17 00:00:00 2001 From: ghubstan <36207203+ghubstan@users.noreply.github.com> Date: Sat, 26 Mar 2022 15:34:55 -0300 Subject: [PATCH] Move gen-python-protos cmd to venv This way, grpcio-tools only needs to be installed in venv, not system. --- python-examples/run-setup.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-examples/run-setup.sh b/python-examples/run-setup.sh index c7282d7..f62dc61 100755 --- a/python-examples/run-setup.sh +++ b/python-examples/run-setup.sh @@ -23,11 +23,6 @@ cd ../proto-downloader ./download-bisq-protos.sh cd ../python-examples -# Generate gRPC Python protobuf classes. You can download them from the -# Bisq repo with the proto-downloader/download-bisq-protos.sh script. -echo "Generating gRPC Python service stubs..." -./generate-python-protos.sh - # Set up Python environment in python-examples directory. echo "Building Python virtual environment in the python-examples directory..." rm -rf myvenv @@ -41,6 +36,11 @@ python3 -m pip install --upgrade pip echo "Installing example code dependencies in virtual environment..." pip install -r requirements.txt +# Generate gRPC Python protobuf classes. You can download them from the +# Bisq repo with the proto-downloader/download-bisq-protos.sh script. +echo "Generating gRPC Python service stubs..." +./generate-python-protos.sh + # Install API example packages in myvenv. echo "Installing example code packages in virtual environment..." pip install .