commit | 289e0c1b87bece33faa6294cf439f4478a1f3935 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Wed Sep 28 23:34:56 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Sep 28 23:34:56 2022 +0000 |
tree | cca0e7da4b060c0bace2dd5faa928244d2c4cc64 | |
parent | b2baaca8eef7af67ef443698a8baae0f2bcd46d1 [diff] |
pw_protobuf_compiler: Default python packages to include directory The typical name for the pw_proto_library target in PW modules is "protos", which creates a python package called just "protos". This is generally not a problem for the build since the generated "protos" packages from different modules would normally install different files. However, when collecting all the .whl files with pw_python_wheels() having two package files with the same name creates a conflict. Make the python package name for the generated pw_proto_library() ".python" target include the directory name too. This only affects pw_proto_library() targets have have neither python_module_as_package defined, always using the name of the single source as package name, nor python_package defined, using the provided python package instead. Change-Id: Ib4d2e07f4959bde51ea6c27337fdbe9b7e016291 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/110650 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Alex Deymo <deymo@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.