Move gen-python-protos cmd to venv

This way, grpcio-tools only needs to be installed in venv, not system.
This commit is contained in:
ghubstan 2022-03-26 15:34:55 -03:00
parent 3171316ea7
commit 02d714bbf3
No known key found for this signature in database
GPG Key ID: E35592D6800A861E

View File

@ -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 .