aboutsummaryrefslogblamecommitdiff
path: root/src/device_trezor/trezor/tools/README.md
blob: b176017ac3c8a2979800d79461e2e0e72cd74a25 (plain) (tree)
1
2
3
4
5
6
7
8
9



                   
                                                     


                     
          
 
 
                                                                 
 
            
 
                                            

       
                              

   
                       
 


                            




                                                               
# Trezor

## Messages rebuild

Install `protoc` for your distribution. Requirements:

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


Soft requirement: Python 3, can be easily installed with [pyenv].

### Python 2

Workaround if there is no Python3 available:

```bash
pip install backports.tempfile
```

### Regenerate messages

```bash
cd src/device_trezor/trezor
python tools/build_protob.py
```

The messages regeneration is done also automatically via cmake.

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