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