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