[Checkins] SVN: z3c.recipe.depgraph/branches/sdouche-exclude-eggs/src/z3c/recipe/depgraph/recipe.py strict option is back. Ready for a new release.
Sébastien Douche
sdouche at free.fr
Thu Oct 22 17:48:29 EDT 2009
Log message for revision 105228:
strict option is back. Ready for a new release.
Changed:
U z3c.recipe.depgraph/branches/sdouche-exclude-eggs/src/z3c/recipe/depgraph/recipe.py
-=-
Modified: z3c.recipe.depgraph/branches/sdouche-exclude-eggs/src/z3c/recipe/depgraph/recipe.py
===================================================================
--- z3c.recipe.depgraph/branches/sdouche-exclude-eggs/src/z3c/recipe/depgraph/recipe.py 2009-10-22 19:33:32 UTC (rev 105227)
+++ z3c.recipe.depgraph/branches/sdouche-exclude-eggs/src/z3c/recipe/depgraph/recipe.py 2009-10-22 21:48:28 UTC (rev 105228)
@@ -22,7 +22,8 @@
self.name = name
self.options = options
self.egg = Egg(buildout, options['recipe'], options)
- self.egglist = self.options.get('egg', '').split()
+ self.eggs = self.options.get('eggs', '').split()
+ self.strict = self.options.get('strict', '').lower() in ('1', 'true', 'yes')
exclude = self.options.get('exclude', '')
re_exclude = self.options.get('re-exclude', '')
@@ -66,9 +67,10 @@
match(name, compiled_patterns)
return matched_names
- if self.egglist:
- # if eggs are present in the recipe, use them
- packages = self.egglist
+ if self.strict:
+ # use only eggs in the list
+ packages = self.eggs
+
else:
# Install an interpreter to find eggs
packages = set([dist.project_name for dist in ws.by_key.values()])
More information about the checkins
mailing list