commit | f0712b6e1be4242fb7f0489676168b1eff01de6c | [log] [tgz] |
---|---|---|
author | Anthony DiGirolamo <tonymd@google.com> | Wed Jul 12 20:16:17 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 12 20:16:17 2023 +0000 |
tree | ad1747d76e30a1dc1bb71d01b1129fefba430a28 | |
parent | 54e90fb786661c6de623d238a8544363e771cee2 [diff] |
pw_build: Compile requirements for Python venvs This change introduces a pip-tools workflow for compiling Python package requirements and constraints for a pw_python_venv. This produces a single requirements.txt file for installing all necessary dependencies. Using pip-tools enables a few additional features added in this CL: - Adding hashes to the requirements.txt for package verification. - A new optional GN subtarget for pw_python_venvs to download Python packages locally. - The pw_python_zip_with_setup template now takes a venv option and will include third party python packages in the zip output. This allows for fully offline installs of distributable bundles. Bug: b/287302102 Bug: b/240701682 Requires: pigweed-internal:48148 Change-Id: Iea26dc843d22ba5502c6c2998390cf1f7f8d2439 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/152071 Reviewed-by: Taylor Cramer <cramertj@google.com> Commit-Queue: Anthony DiGirolamo <tonymd@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/.