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
pull/25/head
matejcik 6 years ago
parent 87837bc305
commit 497c290c81

@ -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",

Loading…
Cancel
Save