Rework the dependency section and contemplate how to thread it all together a little more.

This commit is contained in:
Mike Auty
2016-01-10 16:29:47 +00:00
parent 82a145200f
commit 3bf336df41
3 changed files with 45 additions and 22 deletions
+2 -1
View File
@@ -39,10 +39,11 @@ class CommandLine(object):
# Determine the selected plugin
# Resolve the dependencies on that plugin
dldr = depresolver.DataLayerDependencyResolver()
dependencies = dldr.resolve_dependencies(plugin)
dependencies = dldr.build_tree(plugin)
# TODO: write functions that determine all possible options/requirements for this plugin
# (flatten the tree, treating disjunctions as conjunctions)
print(list(dependencies))
# TODO: Write functions that walk the tree and produce instances of each of the requirements