Skip to content

Instantly share code, notes, and snippets.

@prestonvanloon
Created April 15, 2020 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prestonvanloon/0312c4f9647463b4988e6a4035b5e9bd to your computer and use it in GitHub Desktop.
Save prestonvanloon/0312c4f9647463b4988e6a4035b5e9bd to your computer and use it in GitHub Desktop.
Build instructions for ethereumapis and python
mkdir work
cd work
# Have the well known protos available somewhere on your system.
git clone git@github.com:googleapis/api-common-protos.git
# Have the ethereumapis repo somewhere on your system
git clone git@github.com:prysmaticlabs/ethereumapis.git
# Create some output directory
mkdir python_out
# From the working directory, you need to use the -I flags to indicate the well known protos repo
# and the ethereumAPIs repo.
protoc -I=./ethereumapis -I=./api-common-protos/ --python_out=./python_out/ ./ethereumapis/eth/v1alpha1/beacon_chain.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment