Commit 43ff0478 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Install slapos.libnetworkcache egg in bootstrap.

parent 015361ee
...@@ -468,7 +468,14 @@ class Buildout(DictMixin): ...@@ -468,7 +468,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