erp5-2.12.cfg 4.38 KB
Newer Older
1 2
# XXX refactor parts shared with erp5.cfg into a common file
[buildout]
3 4 5 6
extends =
  mysql-tritonn-5.0.cfg
  python-2.6.cfg

7 8 9 10 11 12 13 14
parts =
  itools-build
  mysql-python
  products-other
  products-deps
  products-erp5

develop +=
15
	${:software_home}/local-eggs/Products.DCWorkflow
16
# The patched Acquisition
17 18 19 20
	${:software_home}/local-eggs/Acquisition

# ugly itools building sections until itools and setuptools learn to get
# along:
21 22

[itools]
23 24 25 26
# This part should not contain contain dependencies to other parts and should
# contain only paths relative to software_home as it will be used directly by
# instances. It should probably be moved to a .cfg file inside
# "instance-profiles"
27
pkgname = itools-0.50.8
28 29 30 31 32 33 34 35
location = ${buildout:software_home}/parts/itools
lib = ${:location}/lib
source = ${:location}/src

[itools-download]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
Łukasz Nowak's avatar
Łukasz Nowak committed
36
md5sum = 12704cc354e2201e0921a832bf6b1556
37
destination = ${itools:source}
38 39 40 41

[itools-build]
recipe = collective.recipe.cmd
on_install = True
42
on_update = True
43 44
# reference itools-download:destination instead of itools:source to trigger its
# execution
45
cmds =
46
    cd ${itools-download:destination}
47
    env CFLAGS="$(pkg-config glib-2.0 --cflags-only-I)" ${python2.6:executable} setup.py install_lib -d ${itools:lib}
48 49

uninstall_cmds =
50 51 52
    cd ${itools-download:destination}
    ${python2.6:executable} setup.py clean
    rm -rf ${itools:lib}
53 54

[mysql-python-env]
55
PATH =${software_definition:mysql_software}/bin:%(PATH)s
56 57 58 59 60 61 62

[mysql-python]
recipe = zc.recipe.egg:custom
egg = MySQL-python
environment = mysql-python-env
rpath =${software_definition:mysql_software}/lib/mysql/

63
[products-deps]
64 65
recipe = minitage.recipe.fetch
urls =
66
	git://git.hforge.org/Localizer.git|git|| Localizer
67 68 69 70 71
    https://svn.plone.org/svn/collective/ExtFile/trunk|svn|| ExtFile

[products]
recipe = plone.recipe.command
paths =
72
	${products-deps:location}
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
command =
  echo "Product folders: ${:paths}"
update-command = ${:command}

[eggs]
recipe = zc.recipe.egg
eggs =
  ${mysql-python:egg}
  PyXML
  SOAPpy
  cElementTree
  elementtree
  erp5diff
  ipdb
  lxml
  mechanize
  numpy
  paramiko
  ply
  pysvn
  python-ldap
  python-memcached
  pytz
  simplejson
  threadframe
  timerserver
  uuid

# Zope 2.12 with patched acquisition
  Zope2
  Acquisition

# Other Zope 2 packages
  Products.PluggableAuthService
  Products.PluginRegistry

# CMF 2.2
  Products.CMFActionIcons
  Products.CMFCalendar
  Products.CMFCore
  Products.CMFDefault
  Products.CMFTopic
  Products.CMFUid
  Products.DCWorkflow
  Products.GenericSetup
  five.localsitemanager

# Other products
    Products.DCWorkflowGraph
    Products.MimetypesRegistry
123
    Products.ExternalEditor
124 125
    Products.Zelenium

126 127
# Currently forked in our repository
#    Products.PortalTransforms
128 129
# Dependency for our fork of PortalTransforms
    StructuredText
130 131

extra-paths =
132
  ${itools:lib}
133 134

dependent-scripts = true
135 136 137 138 139 140 141
# XXX getting python from [buildout] for the benefit of instance recipes
# which should not attempt to compile python again
#python = python2.6

# parameterizing the version of the generated python interpreter name by the
# python section version causes dependency between this egg section and the
# installation of python, which we don't want on an instance
142 143
interpreter = python2.6
scripts =
144 145
	python=${:interpreter}
	ipython=i${:interpreter}
146

147 148 149 150 151 152 153 154 155 156 157
[precache-eggs]
# recipe to populate the egg cache during software-home build, so instances can
# run in offline mode. Hence, no scripts
recipe = zc.recipe.egg
scripts =
eggs =
  collective.recipe.supervisor
  supervisor
  plone.recipe.zope2instance
  erp5.recipe.testrunner

158
[omelette]
159 160
# XXX don't use this part until this omelette bug is fixed:
# https://bugs.launchpad.net/collective.buildout/+bug/553005
161 162 163
recipe = collective.recipe.omelette
eggs = ${eggs:eggs}
packages =
164
      ${itools:lib} .
165 166 167
products =
    ${products:paths}

168 169 170
[business-templates]
recipe = plone.recipe.command
# comma separated list for the benefit of [runUnitTest]
171
paths = ${bt5-erp5-core:location},${bt5-erp5:location},${bt5-erp5-extra:location},${bt5-erp5-test:location}
172 173 174 175
command =
  echo "Business Template Paths: ${:paths}"
update-command = ${:command}

176 177 178 179 180 181 182 183 184 185 186
[requirements]
development =
  /usr/include/glib-2.0/glib.h
  /usr/include/ldap.h
  /usr/include/libxml2/libxml/xmlversion.h
  /usr/include/libxslt/xsltconfig.h
  /usr/include/neon
  /usr/include/sasl/sasl.h

binary =
  zip
187
  pkg-config