[buildout]
versions = versions
extends =
  ../../stack/slapos.cfg
  ../../stack/nodejs.cfg
  ../../component/manpy/buildout.cfg
  ../../stack/monitor/buildout.cfg
  ./buildout.hash.cfg

# Python2 versions for buildout (keep last)
  ../../stack/slapos-py2.cfg

parts =
  slapos-cookbook
  manpy
  dream-testrunner
  npm-install
  instance

[gcc]
# Always build GCC for Fortran (see openblas).
max_version = 0

[gcc:python2]
# also use old gcc version for old scipy version used in python2
part = gcc-8.5

[dream-repository.git]
revision = f3bcf115741886835df8c0ca0fdbf510d77d8db8

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

[dream-testrunner]
recipe = zc.recipe.testrunner
eggs = dream
script = dream_testrunner
initialization =
  ${manpy:initialization}

[npm-install]
recipe = plone.recipe.command
stop-on-error = true
command =
  cd ${dream-repository.git:location}
  PATH=${git:location}/bin:${nodejs:location}/bin:$PATH
  npm install .

[versions]
rpy2 = 2.4.0
pydot = 1.0.28
xlrd = 0.9.3
xlwt = 0.7.5
simpy = 3.0.5
zope.dottedname = 4.1.0
tablib = 0.10.0
mysqlclient = 1.3.12
zc.recipe.testrunner = 2.0.0
