1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-22 20:42:03 +00:00

build: enforce building no-core versions of protobuf messages

This helps when you try to build python-trezor from a subdirectory
of trezor-core, for whatever reason.
(For instance, when you run 'pipenv install' in trezor-core, and also
happen to have protobuf build tools available in the outside environment)
This commit is contained in:
matejcik 2018-05-28 12:55:58 +02:00
parent 648ef511b6
commit ee21733f20

View File

@ -44,7 +44,7 @@ class PrebuildCommand(Command):
# regenerate messages
try:
subprocess.check_call(os.path.join(os.getcwd(), 'tools', 'build_protobuf'))
subprocess.check_call([os.path.join(os.getcwd(), 'tools', 'build_protobuf'), '--no-core'])
except Exception as e:
print(e)
print("Generating protobuf failed. Maybe you don't have 'protoc', or maybe you are on Windows?")