Skip to content

Commit

Permalink
protobuf: doc + update compiled version
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Aug 22, 2024
1 parent 9344913 commit 16858b4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 143 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ Python3 support only, python2 support is dropped

## Protobuf

To compile protobuf, in biomaj_download/message:
If you make changes to protobuf code, you need to compile it to python code:

```bash
cd biomaj_download/message/
protoc --python_out=. downmessage.proto
cd /tmp/protoc/
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v23.2/protoc-23.2-linux-x86_64.zip # Version used by GitHub Actions currently
unzip protoc-23.2-linux-x86_64.zip
cd ..../biomaj_download/message/
/tmp/protoc/bin/protoc --python_out=. downmessage.proto
```

## Development
Expand Down
174 changes: 34 additions & 140 deletions biomaj_download/message/downmessage_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16858b4

Please sign in to comment.