1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

build: run pb2py through sys.executable

* makes this actually work on Windows where pb2py isn't executable by itself
* might prevent problems when installing python-trezor in Travis from git
This commit is contained in:
matejcik 2018-07-09 17:46:57 +02:00
parent 87837bc305
commit 497c290c81

View File

@ -68,6 +68,7 @@ class PrebuildCommand(Command):
try:
proto_srcs = glob.glob(os.path.join(TREZOR_COMMON, "protob", "*.proto"))
subprocess.check_call([
sys.executable,
os.path.join(TREZOR_COMMON, "protob", "pb2py"),
"-o", os.path.join(CWD, "trezorlib", "messages"),
"-P", "..protobuf",