Skip to content

Commit

Permalink
docs(connect): how to install python dependencies from submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed Jan 20, 2025
1 parent c2d9b94 commit 06bba32
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,6 @@ packages/suite-data/files/translations/master.json
# cypress download folder

packages/suite-web/e2e/downloads

# python
.venv/
17 changes: 17 additions & 0 deletions docs/packages/connect/supported-coins.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ _Make sure that desired `[coin].json` definition is present in `trezor-firmware`

2. Build `src/data/coins.json` file using `trezor-common/cointool`:

You need to have a python3 environment setup in order to be able to run it.

Create a python `virtualenv`:

```bash
python3 -m venv .venv
. .venv/bin/activate
```

Then you run pip with the `requirements.txt` file form the trezor-common submodule:

```bash
pip install -r submodules/trezor-common/tools/requirements.txt
```

Now you have all the required dependencies install so you can finally run the script that will update the coins:

```bash
yarn update-coins
```

0 comments on commit 06bba32

Please sign in to comment.