slapos.tool.networkcache was removed from pypi.
[slapos.git] / stack / erp5.cfg
1 [buildout]
2 extensions =
3   slapos.rebootstrap
4   slapos.zcbworkarounds
5   mr.developer
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
12 extends =
13 # Exact version of Zope
14   http://svn.zope.org/repos/main/Zope/tags/2.12.18/versions.cfg
15   ../component/logrotate/buildout.cfg
16   ../component/dcron/buildout.cfg
17   ../component/file/buildout.cfg
18   ../component/fonts/buildout.cfg
19   ../component/ghostscript/buildout.cfg
20   ../component/git/buildout.cfg
21   ../component/glib/buildout.cfg
22   ../component/graphviz/buildout.cfg
23   ../component/haproxy/buildout.cfg
24   ../component/hookbox/buildout.cfg
25   ../component/imagemagick/buildout.cfg
26   ../component/kumo/buildout.cfg
27   ../component/libreoffice-bin/buildout.cfg
28   ../component/lxml-python/buildout.cfg
29   ../component/mariadb/buildout.cfg
30   ../component/memcached/buildout.cfg
31   ../component/mysql-python/buildout.cfg
32   ../component/pdftk/buildout.cfg
33   ../component/pysvn-python/buildout.cfg
34   ../component/python-2.6/buildout.cfg
35   ../component/python-2.7/buildout.cfg
36   ../component/python-ldap-python/buildout.cfg
37   ../component/rdiff-backup/buildout.cfg
38   ../component/stunnel/buildout.cfg
39   ../component/subversion/buildout.cfg
40   ../component/tesseract/buildout.cfg
41   ../component/varnish/buildout.cfg
42   ../component/w3-validator/buildout.cfg
43   ../component/w3m/buildout.cfg
44   ../component/xorg/buildout.cfg
45   ../component/xpdf/buildout.cfg
46   ../component/xtrabackup/buildout.cfg
47   ../component/zabbix/buildout.cfg
48   ../component/sed/buildout.cfg
49   ../component/coreutils/buildout.cfg
50   ../component/grep/buildout.cfg
51
52 versions = versions
53
54 parts =
55   itools-build
56   rdiff-backup
57   apache
58   apache-antiloris
59   file
60   graphviz
61   memcached
62   haproxy
63   varnish-2.1
64   stunnel
65   w3m
66   xpdf
67   libpng12
68   ghostscript
69   mariadb
70   imagemagick
71   kumo
72   libreoffice-bin
73   w3-validator
74   tesseract-eng-traineddata-unzip
75   tesseract
76   hookbox
77   bootstrap2.6
78   zabbix-agent
79   pdftk
80   dcron
81
82 # Buildoutish
83   eggs
84   instance-recipe-egg
85   testrunner
86   test_suite_runner
87
88 # basic Xorg
89   libXdmcp
90   libXext
91   libXau
92   libX11
93
94 # fonts
95   liberation-fonts
96   ipaex-fonts
97
98 # Zope products
99   products-deps
100
101 # Cloudooo specific part
102   cloudooo
103
104 # get git repositories
105   erp5
106
107 [products]
108 # XXX: ERP5 related products are not defined as python distributions, so it is
109 #      required to configure them in declarative manner
110 list = ${products-deps:location} ${erp5:location}/product
111
112 [bootstrap2.6]
113 python = python2.6
114
115 [rebootstrap]
116 # Default first version of rebootstrapped python
117 version = 2
118 section = python2.7
119
120 [itools]
121 pkgname = itools-0.50.8
122 location = ${buildout:parts-directory}/${:_buildout_section_name_}
123 lib = ${:location}/lib
124 source = ${:location}/src
125
126 # ugly itools building sections until itools and setuptools learn to get
127 # along:
128
129 [itools-download]
130 recipe = hexagonit.recipe.download
131 strip-top-level-dir = true
132 url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
133 md5sum = 12704cc354e2201e0921a832bf6b1556
134 destination = ${itools:source}
135
136 [itools-build]
137 recipe = plone.recipe.command
138 # reference itools-download:destination instead of itools:source to trigger its
139 # execution
140 # here, we unset PYTHONPATH to invoke different python than buildout one.
141 command =
142     cd ${itools-download:destination} &&
143     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 &&
144     PYTHONPATH= ${python2.6:executable} setup.py install_lib -d ${itools:lib}
145
146 update-command = ${:command}
147 location = ${itools:location}
148 stop-on-error = true
149
150 [products-deps]
151 # Recipe minitage.recipe.fetch is disabled, as it uses PATH variable, but it
152 # is not possible to change its environment to use localy delivered subversion
153 # nor git. plone.recipe.command can do same job, but it is controllable which
154 # binary will be used
155 recipe = plone.recipe.command
156 svn_param =--trust-server-cert --non-interactive --quiet
157 location = ${buildout:parts-directory}/${:_buildout_section_name_}
158 stop-on-error = true
159 command =
160   ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
161   ${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer
162 update-command =
163   if ${buildout:newest}; then
164     ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
165     cd ${:location}/Localizer &&
166     ${git:location}/bin/git pull --quiet
167   fi
168
169 [erp5_repository_list]
170 repository_id_list = erp5
171
172 [erp5]
173 # Recipe zerokspot.recipe.git is disabled, as is not possible to change its
174 # environment to use localy delivered git.
175 # plone.recipe.command can do same job, but it is controllable which binary
176 # will be used
177 recipe = plone.recipe.command
178 location = ${buildout:parts-directory}/${:_buildout_section_name_}
179 stop-on-error = true
180 repository = http://git.erp5.org/repos/erp5.git
181 branch = master
182 command = ${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}
183 update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
184
185 [products]
186 # XXX: ERP5 related products are not defined as python distributions, so it is
187 #      required to configure them in declarative manner
188 list = ${products-deps:location} ${buildout:parts-directory}/erp5/product
189
190 [testrunner]
191 # XXX: Workaround for fact ERP5Type is not an distribution and does not
192 #      expose entry point for test runner
193 recipe = zc.recipe.egg
194 python = python2.6
195 eggs = ${eggs:eggs}
196 extra-paths = ${eggs:extra-paths}
197 entry-points =
198   runUnitTest=Products.ERP5Type.tests.runUnitTest:main
199 scripts = runUnitTest
200 initialization =
201   import os
202   import sys
203   import Products
204   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
205   Products.__path__.extend(reversed('''${products:list}'''.split()))
206   import Zope2
207   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
208   os.environ['ZOPE_SCRIPTS'] = ''
209   temp_bt5_path_list = ['/'.join(['''${buildout:parts-directory}''', x, 'bt5']) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
210   bt5_path_list = []
211   [bt5_path_list.extend([bt5_path, '%s/*' % bt5_path]) for bt5_path in temp_bt5_path_list]
212   os.environ['erp5_tests_bt5_path'] = ','.join(bt5_path_list)
213   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x, 'tests']) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
214   import glob
215   product_test_path_list = []
216   [product_test_path_list.extend(glob.glob('/'.join(['''${buildout:parts-directory}''', x, 'product/*/tests']))) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
217   sys.path[0:0] = product_test_path_list
218
219 [test_suite_runner]
220 # XXX: Workaround for fact ERP5Type is not an distribution and does not
221 #      expose entry point for test runner
222 recipe = zc.recipe.egg
223 python = python2.6
224 eggs = ${eggs:eggs}
225 extra-paths = ${eggs:extra-paths}
226 entry-points =
227   runTestSuite=Products.ERP5Type.tests.runTestSuite:main
228 scripts = runTestSuite
229 initialization =
230   import os
231   import sys
232   import Products
233   [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
234   Products.__path__.extend(reversed('''${products:list}'''.split()))
235   import Zope2
236   os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
237   os.environ['ZOPE_SCRIPTS'] = ''
238   sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in '''${erp5_repository_list:repository_id_list}'''.split(' ')]
239
240 [instance-recipe-egg]
241 recipe = zc.recipe.egg
242 python = python2.6
243 eggs =
244 # instantiation egg
245   ${instance-recipe:egg}
246   erp5.conflictresolver
247
248 [eggs]
249 recipe = zc.recipe.egg
250 python = python2.6
251 eggs =
252   ${mysql-python:egg}
253   ${lxml-python:egg}
254   ${python-ldap-python:egg}
255   ${pysvn-python:egg}
256   pycrypto
257   PyXML
258   SOAPpy
259   cElementTree
260   chardet
261   elementtree
262   erp5diff
263   ipdb
264   mechanize
265   numpy
266   ordereddict
267   paramiko
268   ply
269   python-magic
270   python-memcached
271   pytz
272   threadframe
273   timerserver
274   urlnorm
275   uuid
276   xml_marshaller
277   xupdate_processor
278   feedparser
279   argparse
280
281 # Zope 2.12 with patched acquisition
282   ZODB3
283   Zope2
284   Acquisition
285
286 # Other Zope 2 packages
287   Products.PluggableAuthService
288   Products.PluginRegistry
289
290 # CMF 2.2
291   Products.CMFActionIcons
292   Products.CMFCalendar
293   Products.CMFCore
294   Products.CMFDefault
295   Products.CMFTopic
296   Products.CMFUid
297   Products.DCWorkflow
298   Products.GenericSetup
299   five.localsitemanager
300
301 # Other products
302   Products.DCWorkflowGraph
303   Products.MimetypesRegistry
304   Products.ExternalEditor
305   Products.TIDStorage
306   Products.Zelenium
307
308 # Currently forked in our repository
309 #    Products.PortalTransforms
310 # Dependency for our fork of PortalTransforms
311   StructuredText
312
313 # parameterizing the version of the generated python interpreter name by the
314 # python section version causes dependency between this egg section and the
315 # installation of python, which we don't want on an instance
316 interpreter = python2.6
317 scripts =
318   repozo
319   runzope
320   runzeo
321   tidstoraged
322   tidstorage_repozo
323
324 extra-paths =
325   ${itools:location}/lib
326
327 [mysql-python]
328 python = python2.6
329
330 [lxml-python]
331 python = python2.6
332
333 [python-ldap-python]
334 python = python2.6
335
336 [pysvn-python]
337 python = python2.6
338
339 [cloudooo]
340 recipe = zc.recipe.egg
341 python = python2.6
342 eggs =
343   ${lxml-python:egg}
344   cloudooo.handler.ffmpeg
345   cloudooo.handler.imagemagick
346   cloudooo.handler.ooo
347   cloudooo.handler.pdf
348   cloudooo
349   PasteScript
350 scripts =
351   paster=cloudooo_paster
352
353 [versions]
354 # Use SlapOS patched zc.buildout
355 zc.buildout = 1.5.3-dev-SlapOS-001
356
357 # pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
358 Acquisition = 2.13.7nxd001
359 Products.DCWorkflow = 2.2.3nxd002
360
361 # Known version with works
362 numpy = 1.3.0
363 # Patched version which support python 2.6
364 PyXML = 0.8.4nxd001
365 # modified version that works fine for buildout installation
366 SOAPpy = 0.12.0nxd001
367 # we are still using this old stable version.
368 rdiff-backup = 1.0.5
369
370 # Zope Known Good Set is incompatible with buildout 1.5.0 in case of
371 # distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
372 # the newest versions of buildout infrastructure clear the pin
373 distribute =
374 setuptools =
375
376 # official pysvn egg does not supports --include-dirs and
377 # --library-dirs, so we use our modified version
378 pysvn = 1.7.4nxd006