Skip to content

Commit

Permalink
pw_build: Forward Python deps for pw_python_distributions
Browse files Browse the repository at this point in the history
Change-Id: Id2ebd895ccbf1e967b070586a8bc847c599ce7a2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/153652
Pigweed-Auto-Submit: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Taylor Cramer <cramertj@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
  • Loading branch information
AnthonyDiGirolamo authored and CQ Bot Account committed Jun 29, 2023
1 parent d531598 commit 148e931
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pw_build/python_dist.gni
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit 148e931

Please sign in to comment.