mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-22 05:10:56 +00:00
build: fix build on Windows (fixes #274)
This commit is contained in:
parent
58091ac099
commit
03b64909ff
3
setup.py
3
setup.py
@ -2,6 +2,7 @@
|
|||||||
import os.path
|
import os.path
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from setuptools import setup, Command
|
from setuptools import setup, Command
|
||||||
@ -44,7 +45,7 @@ class PrebuildCommand(Command):
|
|||||||
# generate and copy coins.json to the tree
|
# generate and copy coins.json to the tree
|
||||||
with tempfile.TemporaryDirectory() as tmpdir:
|
with tempfile.TemporaryDirectory() as tmpdir:
|
||||||
build_coins = os.path.join(TREZOR_COMMON, 'defs', 'coins', 'tools', 'build_coins.py')
|
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'))
|
shutil.copy(os.path.join(tmpdir, 'coins.json'), os.path.join(CWD, 'trezorlib', 'coins.json'))
|
||||||
|
|
||||||
# regenerate messages
|
# regenerate messages
|
||||||
|
Loading…
Reference in New Issue
Block a user