From 497c290c81a4661f5745b034880a53355a1919c1 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 9 Jul 2018 17:46:57 +0200 Subject: [PATCH] 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 --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 202b94a77..b5797157b 100755 --- a/setup.py +++ b/setup.py @@ -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",