Commit 7ed546fc authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Install slapos.libnetworkcache egg in bootstrap.

parent fab89fbe
...@@ -472,7 +472,14 @@ class Buildout(DictMixin): ...@@ -472,7 +472,14 @@ class Buildout(DictMixin):
# Now copy buildout and setuptools eggs, and record destination eggs: # Now copy buildout and setuptools eggs, and record destination eggs:
entries = [] entries = []
options = self['buildout'] options = self['buildout']
for name in 'setuptools', 'zc.buildout': distributions = ['setuptools', 'zc.buildout']
try:
import slapos.libnetworkcache
except ImportError:
pass
else:
distributions.append('slapos.libnetworkcache')
for name in distributions:
if [x for x in sys.argv if \ if [x for x in sys.argv if \
(name == 'setuptools' and \ (name == 'setuptools' and \
re.match(r'^--setuptools-version(=|$)', x)) or \ re.match(r'^--setuptools-version(=|$)', x)) or \
......
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