buildout.cfg 1.62 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
[buildout]
extends =
  ../../stack/slapos.cfg
  ../git/buildout.cfg
  ../babeld/buildout.cfg

develop = 
  re6stnet-repository

parts = 
  babeld
  re6stnet-develop
  re6stnet

[re6stnet-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/re6stnet.git
branch = master
git-executable = ${git:location}/bin/git

[re6stnet-develop]
recipe = zc.recipe.egg:develop
setup = ${re6stnet-hack:dir}

[re6stnet-hack]
recipe = plone.recipe.command
stop-on-error = true
dir = ${re6stnet-repository:location}
command =
  rm -f "${:dir}/re6stconf.py" && ln -s re6st-conf "${:dir}/re6stconf.py"
  rm -f "${:dir}/re6stregister.py" && ln -s re6st-conf "${:dir}/re6stregister.py"
  rm -f "${:dir}/re6stnet.py" && ln -s re6st-conf "${:dir}/re6stnet.py"

update-command = ${:command}

36 37 38 39 40
[environment]
# Note: For now original PATH is appended to the end, as not all tools are
#       provided by SlapOS
PATH=${babeld:location}/bin:${bzip2:location}/bin:${gettext:location}/bin:${glib:location}/bin:${libxml2:location}/bin:${libxslt:location}/bin:${ncurses:location}/bin:${openssl:location}/bin:${pkgconfig:location}/bin:${python2.7:location}/bin:${readline:location}/bin:${sqlite3:location}/bin::${buildout:bin-directory}:${xz-utils:location}/bin:$PATH

41 42 43 44 45 46 47 48 49 50 51 52 53 54
[re6stnet]
recipe = zc.recipe.egg
eggs =
  ${lxml-python:egg}
  ${python-cffi:egg}
  ${python-cryptography:egg}
  pyOpenSSL
  re6stnet

script =
  re6stnet
  re6st-conf
  re6st-registry

55 56 57 58
initialization =
  import os
  os.environ['PATH'] = os.path.expandvars('${environment:PATH}')

59 60 61 62
entry-points =
  re6stnet=re6stnet:main
  re6st-conf=re6stconf:main
  re6st-registry=re6stregistry:main
63