Commit d7abb4d1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8097465e
......@@ -19,20 +19,23 @@ parts = ZODB/scripts
recipe = slapos.recipe.build
major = 4
init =
# link/depend ZODB -> ZODB<X>
zodb_x = 'ZODB'+options['major']
options['depends'] = '$${%s:egg}' % zodb_x
zodb_x = self.buildout[zodb_x]
options['egg'] = zodb_x['egg']
options['location'] = zodb_x['setup']
# XXX more ?
print '\n\nAAA'
print self.buildout['versions']
# update [versions] from what is needed by ZODB<X>
# XXX do not change egg version if it is already speficied in [versions] ?
for _ in zodb_x['egg_versions'].splitlines():
egg, eq, version = _.split() # 'transaction = 1.7.0'
assert eq == '='
self.buildout['versions'][egg] = version
print '\n\nBBB'
print self.buildout['versions']
# propagate updated [versions] -> easy_install
# (buildout does this in Buildout constructor)
import zc.buildout.easy_install
zc.buildout.easy_install.default_versions(self.buildout['versions'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment