mirror of
https://github.com/bisq-network/bisq-api-reference.git
synced 2026-01-27 17:43:33 +00:00
29 lines
886 B
Bash
Executable File
29 lines
886 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# This script must be run from this directory.
|
|
|
|
# Install python3-venv if necessary.
|
|
# sudo apt install python3-venv
|
|
|
|
# Install Python setuptools if necessary.
|
|
# pip install setuptools
|
|
|
|
# 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
|
|
python -m venv myvenv
|
|
source ./myvenv/bin/activate
|
|
|
|
# Install Python example dependencies.
|
|
echo "Installing example code dependencies in virtual environment..."
|
|
pip install -r requirements.txt
|
|
|
|
# Install API example packages in myvenv.
|
|
echo "Installing example code packages in virtual environment..."
|
|
pip install .
|