mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-01-26 17:33:33 +00:00
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:
parent
3171316ea7
commit
02d714bbf3
@ -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 .
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user