1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-21 21:00:58 +00:00

build: fix build on Windows (fixes #274)

This commit is contained in:
matejcik 2018-06-11 18:47:00 +02:00
parent 58091ac099
commit 03b64909ff

View File

@ -2,6 +2,7 @@
import os.path
import shutil
import subprocess
import sys
import tempfile
from setuptools import setup, Command
@ -44,7 +45,7 @@ class PrebuildCommand(Command):
# generate and copy coins.json to the tree
with tempfile.TemporaryDirectory() as tmpdir:
build_coins = os.path.join(TREZOR_COMMON, 'defs', 'coins', 'tools', 'build_coins.py')
subprocess.check_call([build_coins], cwd=tmpdir)
subprocess.check_call([sys.executable, build_coins], cwd=tmpdir)
shutil.copy(os.path.join(tmpdir, 'coins.json'), os.path.join(CWD, 'trezorlib', 'coins.json'))
# regenerate messages