From 148e931089cf332a091a63e0013557805878cbc7 Mon Sep 17 00:00:00 2001 From: Anthony DiGirolamo Date: Thu, 29 Jun 2023 20:52:50 +0000 Subject: [PATCH] pw_build: Forward Python deps for pw_python_distributions Change-Id: Id2ebd895ccbf1e967b070586a8bc847c599ce7a2 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/153652 Pigweed-Auto-Submit: Anthony DiGirolamo Reviewed-by: Taylor Cramer Commit-Queue: Auto-Submit --- pw_build/python_dist.gni | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pw_build/python_dist.gni b/pw_build/python_dist.gni index 58c93b06c3..5776c08639 100644 --- a/pw_build/python_dist.gni +++ b/pw_build/python_dist.gni @@ -276,6 +276,14 @@ template("pw_python_distribution") { metadata = { pw_python_package_metadata_json = [ _package_metadata_json_file ] } + + # Forward the package_metadata subtarget for all packages bundled in this + # distribution. + public_deps = [] + foreach(dep, invoker.packages) { + public_deps += [ get_label_info(dep, "label_no_toolchain") + + "._package_metadata($pw_build_PYTHON_TOOLCHAIN)" ] + } } _package_metadata_targets = []