[buildout]
extends = 
  ../../stack/slapos.cfg
  ../../component/numpy/buildout.cfg
  ../../component/r-language/buildout.cfg

parts +=
  rpy2
  slapos-cookbook
  dream-build
  dream
  instance

[rpy2_env]
PATH = ${r-language:location}/bin/:%(PATH)s

[rpy2]
recipe = zc.recipe.egg:custom
environment = rpy2_env
egg = rpy2>=2.3,<2.4

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

[dream-build]
; use a develop egg to easily develop and because dream already exist on pypi
; https://pypi.python.org/pypi/dream
recipe = zc.recipe.egg:develop
dependency = ${scipy-build:recipe}
setup = ${dream-repository.git:location}

[dream]
recipe = zc.recipe.egg:scripts
eggs = dream
initialization =
  # rpy2 needs R in $PATH
  import os
  os.environ['PATH'] = '${r-language:location}/bin' + os.pathsep + os.environ['PATH']

[instance]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/instance.cfg

