aboutsummaryrefslogtreecommitdiff
path: root/src/device_trezor/trezor/tools/README.md
blob: 91a8fb3f0b099e91e6385791f4d9cb5b125d0165 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Trezor

## Messages rebuild

Install `protoc` for your distribution.

- `protobuf-compiler`
- `libprotobuf-dev`
- `libprotoc-dev`
- `python-protobuf`

Python 3 is required. If you don't have python 3 quite an easy way is
to use [pyenv].

It is also advised to create own python virtual environment so dependencies
are installed in this project-related virtual environment.

```bash
python -m venv /
```

Make sure your python has `protobuf` package installed

```bash
pip install protobuf
```

Regenerate messages:

```
./venv/bin/python3 src/device_trezor/trezor/tools/build_protob.py
```

The messages regeneration is done also automatically via cmake.

[pyenv]: https://github.com/pyenv/pyenv