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:
parent
648ef511b6
commit
ee21733f20
2
setup.py
2
setup.py
@ -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?")
|
||||
|
Loading…
Reference in New Issue
Block a user