[Checkins] SVN: z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py * Versions part is now looked up correctly.
Reinout van Rees
reinout at vanrees.org
Wed Mar 11 07:24:50 EDT 2009
Log message for revision 97835:
* Versions part is now looked up correctly.
* Grabbing versions part and grabbing lxml version is now conditional upon
* existance of the part/version
Changed:
U z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py
-=-
Modified: z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py
===================================================================
--- z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py 2009-03-11 10:54:26 UTC (rev 97834)
+++ z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py 2009-03-11 11:24:50 UTC (rev 97835)
@@ -129,10 +129,12 @@
# Only do expensive download/compilation when there's no existing egg.
path = [install_location]
req_string = self.options['egg'] # 'lxml' or 'lxml == 2.0.9'
- version_req = self.buildout['versions']['lxml']
- if version_req:
- # [versions] wins and is often the place where it is specified.
- req_string = 'lxml == %s' % version_req
+ version_part = self.buildout['buildout'].get('versions')
+ if version_part:
+ version_req = self.buildout[version_part].get('lxml')
+ if version_req:
+ # [versions] wins and is often the place where it is specified.
+ req_string = 'lxml == %s' % version_req
req = pkg_resources.Requirement.parse(req_string)
matching_dists = [d for d in pkg_resources.Environment(path)['lxml']
if d in req]
More information about the Checkins
mailing list