Commit a5609986 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ae975341
...@@ -44,7 +44,7 @@ import-list = ...@@ -44,7 +44,7 @@ import-list =
rawfile ru_lopcomm_libinstance.jinja2.cfg ${ru_lopcomm_libinstance.jinja2.cfg:target} rawfile ru_lopcomm_libinstance.jinja2.cfg ${ru_lopcomm_libinstance.jinja2.cfg:target}
rawfile ru_sunwave_libinstance.jinja2.cfg ${ru_sunwave_libinstance.jinja2.cfg:target} rawfile ru_sunwave_libinstance.jinja2.cfg ${ru_sunwave_libinstance.jinja2.cfg:target}
# activate eggs used in jinja2 templates # activate eggs and modules used in jinja2 templates
[activate-eggs] [activate-eggs]
recipe = slapos.recipe.build recipe = slapos.recipe.build
init = init =
...@@ -61,6 +61,16 @@ init = ...@@ -61,6 +61,16 @@ init =
activate('xlte') activate('xlte')
activate('nrarfcn') activate('nrarfcn')
# ~ import xbuildout
import sys, types
def readfile(path):
with open(path) as f:
return f.read()
xbuildout = types.ModuleType('xbuildout')
exec(readfile('${ru_xbuildout.py:target}'), xbuildout.__dict__)
assert 'xbuildout' not in sys.modules
sys.modules['xbuildout'] = xbuildout
[amarisoft] [amarisoft]
recipe = slapos.recipe.build recipe = slapos.recipe.build
......
...@@ -39,3 +39,6 @@ exe = ${netcapdo:exe} ...@@ -39,3 +39,6 @@ exe = ${netcapdo:exe}
[ru_amarisoft-rf-info.jinja2.py] [ru_amarisoft-rf-info.jinja2.py]
<= download-base <= download-base
[ru_xbuildout.py]
<= download-base
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