commit | 738475b81a5c00ef69a0ef8080b1e1651fe0fc1e | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Thu Jun 23 23:59:51 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 23 23:59:51 2022 +0000 |
tree | 5681e28007c16f52f98e4bab2ed0795616ee8bd5 | |
parent | c6b37efe0a4e048f8df144a0129ac518580c46bc [diff] |
python: Silence yapf import triggered log messages Importing yapf in any Python file was triggering these log messages during bootstrap and activate on Linux and Mac: Generating grammar tables from ./.environment/cipd/packages/python/lib/python3.9/lib2to3/Grammar.txt Writing grammar tables to ./.environment/cipd/packages/python/lib/python3.9/lib2to3/Grammar3.9.5.final.0.pickle Writing failed: [Errno 13] Permission denied: './.environment/cipd/packages/python/lib/python3.9/lib2to3/Grammar3.9.5.final.0.pickle' Generating grammar tables from ./.environment/cipd/packages/python/lib/python3.9/lib2to3/PatternGrammar.txt Writing grammar tables to ./.environment/cipd/packages/python/lib/python3.9/lib2to3/PatternGrammar3.9.5.final.0.pickle Writing failed: [Errno 13] Permission denied: './.environment/cipd/packages/python/lib/python3.9/lib2to3/PatternGrammar3.9.5.final.0.pickle' This CL modifies pw_env_setup to chmoding those pickle files to be writeable. All CIPD packages are put in place as read only. Additionally those log messages are suppressed when importing yapf in python_protos.py. Bug: b/236166970 Change-Id: I41ca5ca6dd435a9fb534983d9aa967a31314ff62 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/98520 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com> Reviewed-by: Wyatt Hepler <hepler@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/.