Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1315)

Unified Diff: scripts/tools/show_me_the_modules.py

Issue 1111413005: Some changes to allow recipes and modules to live noncentrally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Review comments Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/unittests/recipe_simulation_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/tools/show_me_the_modules.py
diff --git a/scripts/tools/show_me_the_modules.py b/scripts/tools/show_me_the_modules.py
index e052404523e980f3c9a3ba136e174e85fa095cbe..728c4dfb011f3235a50ee9bdb69a42eb75716c97 100755
--- a/scripts/tools/show_me_the_modules.py
+++ b/scripts/tools/show_me_the_modules.py
@@ -84,17 +84,21 @@ def main():
p(0, 'Common Methods -- %s' % os.path.splitext(recipe_api.__file__)[0])
for method in sorted(common_methods):
pmethod(1, method, getattr(recipe_api.RecipeApi, method))
- RECIPE_MODULES = recipe_loader.load_recipe_modules(recipe_util.MODULE_DIRS())
+
+ universe = recipe_loader.RecipeUniverse()
+ deps = universe.deps_from_paths(
+ { modpath: modpath
+ for modpath in recipe_loader.loop_over_recipe_modules() },
+ base_path=None)
inst = recipe_loader.create_recipe_api(
- [mod_name for mod_name, mod in member_iter(RECIPE_MODULES)],
- annotated_run.SequentialRecipeEngine(None, {}, None))
+ deps, annotated_run.SequentialRecipeEngine(None, {}, None))
- for mod_name, mod in member_iter(RECIPE_MODULES):
+ for mod_name, mod in deps.iteritems():
p(0)
p(0, "(%s) -- %s" % (mod_name, mod.__path__[0]))
- if mod.DEPS:
- p(1, 'DEPS:', list(mod.DEPS))
+ if mod.LOADED_DEPS:
+ p(1, 'DEPS:', list(mod.LOADED_DEPS))
subinst = getattr(inst, mod_name)
bases = set(subinst.__class__.__bases__)
« no previous file with comments | « scripts/slave/unittests/recipe_simulation_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698