Readability & consistency: use only long arguments.
[slapos.git] / stack / erp5.cfg
1 [buildout]
2 extensions =
3   slapos.rebootstrap
4   slapos.zcbworkarounds
5   buildout-versions
6
7 find-links =
8     http://www.nexedi.org/static/packages/source/slapos.buildout/
9     http://dist.repoze.org
10     http://www.nexedi.org/static/packages/source/
11     http://www.owlfish.com/software/wsgiutils/download.html
12
13 # Separate from site eggs
14 allowed-eggs-from-site-packages =
15 include-site-packages = false
16 exec-sitecustomize = false
17
18 # Use only quite well working sites.
19 allow-hosts =
20   *.nexedi.org
21   *.python.org
22   *.sourceforge.net
23   alastairs-place.net
24   dist.repoze.org
25   effbot.org
26   github.com
27   peak.telecommunity.com
28   psutil.googlecode.com
29   www.dabeaz.com
30   www.owlfish.com
31
32 extends =
33 # Exact version of Zope
34   http://svn.zope.org/repos/main/Zope/tags/2.12.22/versions.cfg
35   ../component/logrotate/buildout.cfg
36   ../component/dcron/buildout.cfg
37   ../component/file/buildout.cfg
38   ../component/fonts/buildout.cfg
39   ../component/ghostscript/buildout.cfg
40   ../component/git/buildout.cfg
41   ../component/glib/buildout.cfg
42   ../component/graphviz/buildout.cfg
43   ../component/gzip/buildout.cfg
44   ../component/haproxy/buildout.cfg
45   ../component/hookbox/buildout.cfg
46   ../component/imagemagick/buildout.cfg
47   ../component/kumo/buildout.cfg
48   ../component/libreoffice-bin/buildout.cfg
49   ../component/lxml-python/buildout.cfg
50   ../component/percona-toolkit/buildout.cfg
51   ../component/mariadb/buildout.cfg
52   ../component/memcached/buildout.cfg
53   ../component/mysql-python/buildout.cfg
54   ../component/pdftk/buildout.cfg
55   ../component/pycrypto-python/buildout.cfg
56   ../component/pysvn-python/buildout.cfg
57   ../component/python-2.6/buildout.cfg
58   ../component/python-2.7/buildout.cfg
59   ../component/python-ldap-python/buildout.cfg
60   ../component/rdiff-backup/buildout.cfg
61   ../component/sphinx/buildout.cfg
62   ../component/stunnel/buildout.cfg
63   ../component/subversion/buildout.cfg
64   ../component/tesseract/buildout.cfg
65   ../component/varnish/buildout.cfg
66   ../component/w3-validator/buildout.cfg
67   ../component/w3m/buildout.cfg
68   ../component/xorg/buildout.cfg
69   ../component/poppler/buildout.cfg
70   ../component/xtrabackup/buildout.cfg
71   ../component/zabbix/buildout.cfg
72   ../component/sed/buildout.cfg
73   ../component/coreutils/buildout.cfg
74   ../component/grep/buildout.cfg
75   ../component/dash/buildout.cfg
76
77 versions = versions
78
79 parts =
80   itools-build
81   rdiff-backup
82   apache
83   apache-antiloris
84   file
85   graphviz
86   memcached
87   haproxy
88   varnish-2.1
89   stunnel
90   w3m
91   poppler
92   libpng
93   ghostscript
94   mariadb
95   mroonga-mariadb
96   sphinx
97   imagemagick
98   kumo
99   libreoffice-bin
100   w3-validator
101   tesseract-eng-traineddata-unzip
102   tesseract
103   hookbox
104   bootstrap2.6
105   perl-DBD-mariadb
106   perl-DBI
107   percona-toolkit
108   zabbix-agent
109   pdftk
110   dcron
111   dash
112
113 # Buildoutish
114   eggs
115   testrunner
116   test_suite_runner
117
118 # basic Xorg
119   libXdmcp
120   libXext
121   libXau
122   libXinerama
123   libSM
124
125 # fonts
126   liberation-fonts
127   ipaex-fonts
128
129 # Zope products
130   products-deps
131
132 # Cloudooo specific part
133   cloudooo
134
135 # get git repositories
136   erp5
137   genbt5list
138
139 # fix products path (Zeo needs ERP5 Products to be available for
140 # conflict resolution)
141   fix-products-paths
142 # some additional utils
143   slapos-toolbox
144
145 [bt5-repository]
146 # Format:
147 #   <url or path> [...]
148 #
149 # Use absolute paths for local repositories, and URLs for non-local otherwise.
150 #
151 list = ${local-bt5-repository:list}
152
153 [local-bt5-repository]
154 # Same as bt5-repository, but only local repository.
155 # Used to generate bt5lists.
156 list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap
157
158 [genbt5list]
159 recipe = plone.recipe.command
160 stop-on-error = true
161 genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
162 command =
163   ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
164 update-command = ${:command}
165
166 [bootstrap2.6]
167 python = python2.6
168
169 [rebootstrap]
170 version = 3
171 section = python2.7
172 eggs = slapos.libnetworkcache
173
174 [itools]
175 pkgname = itools-0.50.8
176 location = ${buildout:parts-directory}/${:_buildout_section_name_}
177 lib = ${:location}/lib
178 source = ${:location}/src
179
180 # ugly itools building sections until itools and setuptools learn to get
181 # along:
182
183 [itools-download]
184 recipe = hexagonit.recipe.download
185 strip-top-level-dir = true
186 url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
187 md5sum = 12704cc354e2201e0921a832bf6b1556
188 destination = ${itools:source}
189
190 [itools-build]
191 recipe = plone.recipe.command
192 # reference itools-download:destination instead of itools:source to trigger its
193 # execution
194 # here, we unset PYTHONPATH to invoke different python than buildout one.
195 command =
196     cd ${itools-download:destination} &&
197     PYTHONPATH= ${python2.6:executable} setup.py build_ext -L ${glib:location}/lib -I ${glib:location}/include/glib-2.0:${glib:location}/lib/glib-2.0/include -R ${glib:location}/lib &&
198     PYTHONPATH= ${python2.6:executable} setup.py install_lib -d ${itools:lib}
199
200 update-command = ${:command}
201 location = ${itools:location}
202 stop-on-error = true
203
204 [products-deps]
205 # Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
206 # is not possible to change its environment to use localy delivered subversion
207 # nor git. plone.recipe.command can do same job, but it is controllable which
208 # binary will be used
209 recipe = plone.recipe.command
210 svn_param =--trust-server-cert --non-interactive --quiet
211 location = ${buildout:parts-directory}/${:_buildout_section_name_}
212 stop-on-error = true
213 command =
214   ${subversion:location}/bin/svn checkout -r 98997 ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
215   ${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer && cd ${:location}/Localizer && ${git:location}/bin/git reset --quiet --hard dacb6ba0ae559cd9bdb8822812d24a12a21e9e37
216
217 [erp5_repository_list]
218 repository_id_list = erp5
219
220 [erp5]
221 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
222 # environment to use localy delivered git.
223 # plone.recipe.command can do same job, but it is controllable which binary
224 # will be used
225 recipe = plone.recipe.command
226 location = ${buildout:parts-directory}/${:_buildout_section_name_}
227 stop-on-error = true
228 repository = http://git.erp5.org/repos/erp5.git
229 branch = master
230 revision =
231 command = ${git:location}/bin/git clone --quiet --branch ${:branch} ${:repository} ${:location} && if [ -n "${:revision}" ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
232 update-command = cd ${:location} && ${git:location}/bin/git pull --quiet && if [ -n "${:revision}" ]; then cd ${:location} && ${git:location}/bin/git reset --quiet --hard ${:revision} ; fi
233
234 [products]
235 # XXX: ERP5 related products are not defined as python distributions, so it is
236 #      required to configure them in declarative manner
237 list =
238
239 [fix-products-paths]
240 recipe = plone.recipe.command
241 stop-on-error = true
242 command =
243   for DIR in "${products-deps:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
244   for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
245 update-command = ${:command}
246
247 [testrunner]
248 # XXX: Workaround for fact ERP5Type is not an distribution and does not
249 #      expose entry point for test runner
250 recipe = zc.recipe.egg
251 python = python2.6
252 eggs = ${eggs:eggs}
253 extra-paths = ${eggs:extra-paths}
254 entry-points =
255   runUnitTest=runUnitTest:main
256 scripts = runUnitTest
257 initialization =
258   import glob, imp, os, sys
259   import App # prevent Testing from importing Zope2.App instead of App
260   import Products
261   Products.__path__[:0] = filter(None,
262     os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
263   Products.__path__.extend(reversed('''${products:list}'''.split()))
264   os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
265   os.environ['ZOPE_SCRIPTS'] = ''
266   parts_directory = '''${buildout:parts-directory}'''
267   repository_id_list = \
268     '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
269   os.environ['erp5_tests_bt5_path'] = ','.join(sum((
270     [bt5_path, os.path.join(bt5_path, '*')]
271     for bt5_path in (os.path.join(parts_directory, x, 'bt5')
272                      for x in repository_id_list)), []))
273   sys.path[:0] = [os.path.join(parts_directory, x, 'tests')
274                   for x in repository_id_list]
275   sys.path[:0] = sum((
276     glob.glob(os.path.join(parts_directory, x, 'product', '*', 'tests'))
277     for x in repository_id_list), [])
278
279 [test_suite_runner]
280 # XXX: Workaround for fact ERP5Type is not an distribution and does not
281 #      expose entry point for test runner
282 recipe = zc.recipe.egg
283 python = python2.6
284 eggs = ${eggs:eggs}
285 extra-paths = ${eggs:extra-paths}
286 entry-points =
287   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
288 scripts = runTestSuite
289 initialization =
290   import os
291   import sys
292   import Products
293   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
294   Products.__path__.extend(reversed('''${products:list}'''.split()))
295   import Zope2
296   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
297   os.environ['ZOPE_SCRIPTS'] = ''
298   repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
299   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
300
301 [eggs]
302 recipe = zc.recipe.egg
303 python = python2.6
304 eggs =
305   ${mysql-python:egg}
306   ${lxml-python:egg}
307   ${python-ldap-python:egg}
308   ${pysvn-python:egg}
309   ${pycrypto-python:egg}
310   PyXML
311   SOAPpy
312   cElementTree
313   chardet
314   coverage
315   elementtree
316   erp5diff
317   ipdb
318   mechanize
319   numpy
320   ordereddict
321   paramiko
322   ply
323   python-magic
324   python-memcached
325   pytz
326   threadframe
327   timerserver
328   urlnorm
329   uuid
330   xml_marshaller
331   xupdate_processor
332   feedparser
333   argparse
334   validictory
335
336 # Zope 2.12 with patched acquisition
337   ZODB3
338   Zope2
339   Acquisition
340
341 # Other Zope 2 packages
342   Products.PluggableAuthService
343   Products.PluginRegistry
344
345 # CMF 2.2
346   Products.CMFActionIcons
347   Products.CMFCalendar
348   Products.CMFCore
349   Products.CMFDefault
350   Products.CMFTopic
351   Products.CMFUid
352   Products.DCWorkflow
353   Products.GenericSetup
354   five.localsitemanager
355
356 # Other products
357   Products.DCWorkflowGraph
358   Products.MimetypesRegistry
359   Products.ExternalEditor
360   Products.TIDStorage
361   Products.Zelenium
362
363 # Currently forked in our repository
364 #    Products.PortalTransforms
365 # Dependency for our fork of PortalTransforms
366   StructuredText
367
368 # parameterizing the version of the generated python interpreter name by the
369 # python section version causes dependency between this egg section and the
370 # installation of python, which we don't want on an instance
371 interpreter = python2.6
372 scripts =
373   repozo
374   runzope
375   runzeo
376   tidstoraged
377   tidstorage_repozo
378
379 extra-paths =
380   ${itools:location}/lib
381   ${products-deps:location}
382   ${erp5:location}
383
384 [mysql-python]
385 python = python2.6
386
387 [lxml-python]
388 python = python2.6
389
390 [python-ldap-python]
391 python = python2.6
392
393 [pysvn-python]
394 python = python2.6
395
396 [slapos-toolbox]
397 recipe = zc.recipe.egg
398 python = ${eggs:python}
399 eggs =
400   ${lxml-python:egg}
401   slapos.toolbox
402
403 scripts =
404   killpidfromfile = slapos.systool:killpidfromfile
405   onetimedownload = slapos.toolbox:onetimedownload
406
407 [cloudooo]
408 recipe = zc.recipe.egg
409 python = python2.6
410 eggs =
411   ${lxml-python:egg}
412   cloudooo.handler.ffmpeg
413   cloudooo.handler.imagemagick
414   cloudooo.handler.ooo
415   cloudooo.handler.pdf
416   cloudooo
417   PasteScript
418 scripts =
419   paster=cloudooo_paster
420
421 [versions]
422 # Use SlapOS patched zc.buildout
423 zc.buildout = 1.6.0-dev-SlapOS-003
424
425 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
426 Acquisition = 2.13.7nxd001
427 Products.DCWorkflow = 2.2.3nxd002
428
429 # Known version with works
430 numpy = 1.3.0
431 # Patched version which support python 2.6
432 PyXML = 0.8.4nxd001
433 # modified version that works fine for buildout installation
434 SOAPpy = 0.12.0nxd001
435 # we are still using this old stable version.
436 rdiff-backup = 1.0.5
437
438 # Zope Known Good Set is incompatible with buildout 1.5.0 in case of
439 # distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
440 # the newest versions of buildout infrastructure clear the pin
441 distribute =
442 setuptools =
443
444 # official pysvn egg does not supports --include-dirs and
445 # --library-dirs, so we use our modified version
446 pysvn = 1.7.4nxd006