Protocol buffer types for the pylons ecosystem
- protoc
- An appropriate protoc plugin for the language you're compiling to
- protodep
Copy the files in the example
folder into your project. Then:
- Edit the
proto_outdir
field inprotodep.toml
to the path you want to store the protodep-managed proto files at. - Edit the variables in the
pylons_proto_deploy_build
scripts as follows:outdir
- the relative path generated code should be stored atlang
- the language prefix to use for the protoc plugin you're compiling with (for instance, C++ would becpp
, since the protoc option iscpp_out
protopath
-proto_outdir
It's also strongly recommended that your project's .gitignore file includes the location the protos are being downloaded to.
Run protodep up -u -f
to download the Pylons protos and their dependencies.
Note that protodep will erase any files in proto_outdir
; as such, if your project contains any protos of its own, they must be stored in a separate folder.
Also note that this can take a while, even on a fast connection, and doesn't give you any console output while a repository is being retrieved. Don't panic!
Once you've obtained the required protos, run pylons_proto_deploy_build.sh
or pylons_proto_deploy_build.bat
to build the Pylons types and their dependencies.