Commit a6982cdf authored by Łukasz Nowak's avatar Łukasz Nowak

Copy all requirements of slapos.libnetworkcache.

This allows complex library usage in bootstrap process.
parent 7d2ccdb2
...@@ -438,7 +438,12 @@ class Buildout(UserDict.DictMixin): ...@@ -438,7 +438,12 @@ class Buildout(UserDict.DictMixin):
entries = [] entries = []
copy_list = ['setuptools', 'zc.buildout'] copy_list = ['setuptools', 'zc.buildout']
if LIBNETWORKCACHE_ENABLED: if LIBNETWORKCACHE_ENABLED:
copy_list.append('slapos.libnetworkcache') copy_list.append('slapos.libnetworkcache')
networkcache_dist = ws.find(pkg_resources.Requirement.parse(
'slapos.libnetworkcache'))
for requirement in [q.key for q in networkcache_dist.requires()]:
if requirement not in copy_list:
copy_list.append(requirement)
for name in copy_list: for name in copy_list:
r = pkg_resources.Requirement.parse(name) r = pkg_resources.Requirement.parse(name)
dist = ws.find(r) dist = ws.find(r)
......
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