Skip to content

Build Instructions

Elvin Yang edited this page Feb 3, 2022 · 2 revisions

Tested with

  • macOS 10.15.7
  • protoc 3.19.4
  • Python 3.9.10
  • mypy-protobuf 3.2.0 (commit)

Prerequisites

  • protoc
    • e.g. brew install protobuf
  • mypy-protobuf
    • e.g. pip3 install mypy-protobuf
    • Check that the exectuable protoc-gen-mypy is accessible through your $PATH. If Python was installed with Homebrew, the executable's absolute path should be $(brew --prefix)/bin/protoc-gen-mypy

Building

In the top-level directory on the proto-types branch, run

python3 tools/wheels.py build --latest-build-requirements --skip-git-check bosdyn-api

Post-Build

The generated .pyi type stubs should be located in protos/build/protos/bosdyn/api/. Copy these to lib/python3.X/site-packages/bosdyn/api/ in the other project's virtualenv.

Clone this wiki locally