mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-01-26 17:33:33 +00:00
Make Python examples in one step: run-setup.py
This commit is contained in:
parent
4b1d1c9874
commit
478d578a6c
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Downloading Bisq protobuf files from github to $PROTO_PATH directory."
|
||||
echo "You may want to skip this step and copy your own local .proto files instead."
|
||||
echo "Downloading Bisq protobuf files from github to $PROTO_PATH directory..."
|
||||
echo "You can skip this step and copy your own local .proto files instead."
|
||||
|
||||
# Download the Bisq master branch's protobuf definition files.
|
||||
curl -o ./pb.proto https://raw.githubusercontent.com/bisq-network/bisq/master/proto/src/main/proto/pb.proto
|
||||
|
||||
@ -3,11 +3,17 @@
|
||||
# This script must be run from this directory.
|
||||
|
||||
# Install python3-venv if necessary.
|
||||
# For systems using the apt package manager, uncomment the line below, or install the equivalent package for your system.
|
||||
# sudo apt install python3-venv
|
||||
|
||||
# Install Python setuptools if necessary.
|
||||
# Install pip, then Python setuptools if necessary.
|
||||
# pip install setuptools
|
||||
|
||||
# Download the Bisq protobuf definition files from the Bisq repository.
|
||||
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..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user