summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTristan van Berkom <tristan.vanberkom@codethink.co.uk>2020-08-09 20:14:43 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-09-18 12:38:49 +0900
commit42c5ee0a3a840756aae675a96b7b3c09e06b487d (patch)
treef14b74b70bf512bafda10b3ea75d946bc6f9fb0c /man
parentaf478ca1b9a2855b0b0bcd71d4e33270853caade (diff)
downloadbuildstream-42c5ee0a3a840756aae675a96b7b3c09e06b487d.tar.gz
element.py: Adding new configure_dependencies() public API method
This patch implements the essentials of the proposal to extend the dependency attributes: https://lists.apache.org/thread.html/r850aeb270200daade44261f16dbad403bf762e553b89dcafa0848fe7%40%3Cdev.buildstream.apache.org%3E And essentially this will obsolete issue #931 by providing a more suitable replacement for Element.search(). Summary of changes: * _loader/loadelement.pyx: The Dependency object now loads the `config` node, and raises an error if the `config` node is specified on a runtime-only dependency. * element.py: Created the new Element.configure_dependencies() virtual method. If elements implement this method, then a list of all dependencies are collected at element construction time and given to the implementing (depending) element. If a build dependency has more than one `config` specified, then it will be given to the Element twice, and if there is no `config` specified, then the tuple will still be given to the element with a Null `config`. Elements are provided via a new DependencyConfiguration type.
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions