[buildout]
extends = ../profiles/deployment.cfg

parts +=
  development-site

[software_definition]
software_home = ${buildout:directory}

[runUnitTest]
recipe = erp5.recipe.testrunner
zope2-location = ${zope-instance:zope2-location}
products =
  ${software_definition:products-zope}
  ${zope-instance:products}
bt5_path = ${zope-instance:bt5-path}

instance-home = ${zope-instance:instancehome}
initialization =
  import os
  os.environ['PATH'] = ':'.join(['${buildout:data-bin-directory}','${buildout:bin-directory}'] + os.environ.get('PATH','').split(':'))

[development-site]
<= zope-instance-template
# developer by default want to have updatable Data.fs
force-zodb-update = true
bt5-path =
bt5 =
eggs =
  Products.ExternalEditor

# MySQL
mysql_database_name = development_site
mysql_user = development_user
mysql_password = development_password
mysql_host = ${configuration:mysql_host}
mysql_port = ${configuration:mysql_port}

# create database
mysql_create_database = true
# below could be set in configuration
mysql_superuser = root
mysql_superpassword =

# zope.conf template part BEGIN
debug-mode = on
instancehome = ${buildout:var-directory}/development-site
http-address = 18080
# until we will have more control over products we need to redefine to insert
# local products to be able to override
products =
  ${:instancehome}/Products/
  ${software_definition:products-erp5}
  ${software_definition:products-erp5-development}
  ${software_definition:products-deps}
  ${software_definition:products-other}
  ${software_definition:products-cmf15}
# zope.conf template part ENDS

[requirements]
binary +=
  svn
  svnadmin
development +=
  /usr/include.*/svn_client.h