erp5-2.12.cfg 4.76 KB
Newer Older
1 2
# XXX refactor parts shared with erp5.cfg into a common file
[buildout]
3 4 5
extends =
  mysql-tritonn-5.0.cfg
  python-2.6.cfg
6
  lxml-python.cfg
7
  python-ldap-python.cfg
8 9
  subversion.cfg
  git.cfg
10

11 12 13 14 15 16 17
parts =
  itools-build
  mysql-python
  products-other
  products-deps
  products-erp5

18 19
# ugly itools building sections until itools and setuptools learn to get
# along:
20 21

[itools]
22 23 24 25
# 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"
26
pkgname = itools-0.50.8
27 28 29 30 31 32 33 34
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
35
md5sum = 12704cc354e2201e0921a832bf6b1556
36
destination = ${itools:source}
37 38 39 40

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

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

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

[mysql-python]
recipe = zc.recipe.egg:custom
egg = MySQL-python
environment = mysql-python-env
60 61 62 63
rpath =
  ${software_definition:mysql_software}/lib/mysql/
  ${software_definition:software_home}/parts/zlib/lib/
  ${software_definition:software_home}/parts/openssl/lib/
64

65
[products-deps]
66 67 68 69 70 71 72
# Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
# is not possible to change its environment to use localy delivered subversion
# nor git. plone.recipe.command can do same job, but it is controllable which
# binary will be used
recipe = plone.recipe.command
svn_param =--trust-server-cert --non-interactive
location = ${buildout:parts-directory}/${:_buildout_section_name_}
73
stop-on-error = true
74 75 76
command =
  ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile
  ${git:location}/bin/git clone git://git.hforge.org/Localizer.git ${:location}/Localizer
77 78 79 80
update-command =
  ${subversion:location}/bin/svn up ${:svn_param} ${:location}/ExtFile
  cd ${:location}/Localizer
  ${git:location}/bin/git pull
81 82 83 84

[products]
recipe = plone.recipe.command
paths =
85
	${products-deps:location}
86 87 88 89 90 91 92 93
command =
  echo "Product folders: ${:paths}"
update-command = ${:command}

[eggs]
recipe = zc.recipe.egg
eggs =
  ${mysql-python:egg}
94
  ${lxml-python:egg}
95
  ${python-ldap-python:egg}
96 97 98 99 100 101 102 103
  PyXML
  SOAPpy
  cElementTree
  elementtree
  erp5diff
  ipdb
  mechanize
  numpy
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
104
  ordereddict
105 106 107 108 109 110 111 112 113
  paramiko
  ply
  pysvn
  python-memcached
  pytz
  simplejson
  threadframe
  timerserver
  uuid
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
114 115
  xml_marshaller
  xupdate_processor
Ivan Tyagov's avatar
Ivan Tyagov committed
116
  feedparser
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139

# 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
140
    Products.ExternalEditor
141 142
    Products.Zelenium

143 144
# Currently forked in our repository
#    Products.PortalTransforms
145 146
# Dependency for our fork of PortalTransforms
    StructuredText
147 148

extra-paths =
149
  ${itools:lib}
150 151

dependent-scripts = true
152 153 154 155 156 157 158
# 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
159 160
interpreter = python2.6
scripts =
161 162
	python=${:interpreter}
	ipython=i${:interpreter}
163

164 165 166 167 168 169 170
[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
171
  collective.recipe.template
172 173
  erp5.recipe.mysqlserver
  erp5.recipe.ooodinstance
174
  erp5.recipe.standaloneinstance
175
  erp5.recipe.testrunner
176
  plone.recipe.command
177
  plone.recipe.zope2instance
178
  supervisor
179

180
[omelette]
181 182
# XXX don't use this part until this omelette bug is fixed:
# https://bugs.launchpad.net/collective.buildout/+bug/553005
183 184 185
recipe = collective.recipe.omelette
eggs = ${eggs:eggs}
packages =
186
      ${itools:lib} .
187 188
products =
    ${products:paths}