erp5.cfg 13.9 KB
Newer Older
1 2
[buildout]
extensions =
3
  slapos.rebootstrap
4
  slapos.zcbworkarounds
5
  buildout-versions
6 7 8 9 10

find-links =
    http://www.nexedi.org/static/packages/source/slapos.buildout/
    http://dist.repoze.org
    http://www.nexedi.org/static/packages/source/
11
    http://www.owlfish.com/software/wsgiutils/download.html
12

13 14 15 16 17
# Separate from site eggs
allowed-eggs-from-site-packages =
include-site-packages = false
exec-sitecustomize = false

18 19 20 21 22
# Use only quite well working sites.
allow-hosts =
  *.nexedi.org
  *.python.org
  *.sourceforge.net
23
  alastairs-place.net
24 25
  dist.repoze.org
  effbot.org
26
  github.com
27
  peak.telecommunity.com
28
  psutil.googlecode.com
29
  www.dabeaz.com
30
  www.owlfish.com
31

32 33
extends =
# Exact version of Zope
Romain Courteaud's avatar
Romain Courteaud committed
34
  http://svn.zope.org/repos/main/Zope/tags/2.12.22/versions.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
35 36 37 38 39 40 41 42
  ../component/logrotate/buildout.cfg
  ../component/dcron/buildout.cfg
  ../component/file/buildout.cfg
  ../component/fonts/buildout.cfg
  ../component/ghostscript/buildout.cfg
  ../component/git/buildout.cfg
  ../component/glib/buildout.cfg
  ../component/graphviz/buildout.cfg
43
  ../component/gzip/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
44 45 46 47
  ../component/haproxy/buildout.cfg
  ../component/hookbox/buildout.cfg
  ../component/imagemagick/buildout.cfg
  ../component/kumo/buildout.cfg
48
  ../component/libpng/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
49 50
  ../component/libreoffice-bin/buildout.cfg
  ../component/lxml-python/buildout.cfg
51
  ../component/percona-toolkit/buildout.cfg
52
  ../component/mysql-tritonn-5.0/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
53 54 55
  ../component/memcached/buildout.cfg
  ../component/mysql-python/buildout.cfg
  ../component/pdftk/buildout.cfg
56
  ../component/pycrypto-python/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
57 58 59 60 61
  ../component/pysvn-python/buildout.cfg
  ../component/python-2.6/buildout.cfg
  ../component/python-2.7/buildout.cfg
  ../component/python-ldap-python/buildout.cfg
  ../component/rdiff-backup/buildout.cfg
62
  ../component/sphinx/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
63 64 65 66 67 68 69
  ../component/stunnel/buildout.cfg
  ../component/subversion/buildout.cfg
  ../component/tesseract/buildout.cfg
  ../component/varnish/buildout.cfg
  ../component/w3-validator/buildout.cfg
  ../component/w3m/buildout.cfg
  ../component/xorg/buildout.cfg
70
  ../component/poppler/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
71 72 73 74 75
  ../component/xtrabackup/buildout.cfg
  ../component/zabbix/buildout.cfg
  ../component/sed/buildout.cfg
  ../component/coreutils/buildout.cfg
  ../component/grep/buildout.cfg
76
  ../component/mydumper/buildout.cfg
Romain Courteaud's avatar
Romain Courteaud committed
77
  ../component/dash/buildout.cfg
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92

versions = versions

parts =
  itools-build
  rdiff-backup
  apache
  apache-antiloris
  file
  graphviz
  memcached
  haproxy
  varnish-2.1
  stunnel
  w3m
Rafael Monnerat's avatar
Rafael Monnerat committed
93
  poppler
94
  libpng12
95
  libpng
96
  ghostscript
97
  mysql-tritonn-5.0
98
  sphinx
99 100 101 102 103 104 105 106
  imagemagick
  kumo
  libreoffice-bin
  w3-validator
  tesseract-eng-traineddata-unzip
  tesseract
  hookbox
  bootstrap2.6
107
  perl-DBD-MySQL
108 109
  perl-DBI
  percona-toolkit
110 111 112
  zabbix-agent
  pdftk
  dcron
113
  mydumper
Romain Courteaud's avatar
Romain Courteaud committed
114
  dash
115 116 117 118 119 120 121 122 123 124

# Buildoutish
  eggs
  testrunner
  test_suite_runner

# basic Xorg
  libXdmcp
  libXext
  libXau
125
  libSM
126
  libXrender
127 128 129 130 131 132 133

# fonts
  liberation-fonts
  ipaex-fonts

# Zope products
  products-deps
134 135
# Upgrade products
  products-upgrade
136 137 138 139 140 141

# Cloudooo specific part
  cloudooo

# get git repositories
  erp5
142
  beteireflow-repository
143 144
  genbt5list

145 146
# fix products path (Zeo needs ERP5 Products to be available for
# conflict resolution)
147
  fix-products-paths
148 149
# some additional utils
  slapos-toolbox
150

151 152 153 154 155 156 157 158 159 160 161
[bt5-repository]
# Format:
#   <url or path> [...]
#
# Use absolute paths for local repositories, and URLs for non-local otherwise.
#
list = ${local-bt5-repository:list}

[local-bt5-repository]
# Same as bt5-repository, but only local repository.
# Used to generate bt5lists.
162
list = ${erp5:location}/bt5 ${erp5:location}/product/ERP5/bootstrap ${beteireflow-repository:location}/bt5
163 164 165 166 167 168

[genbt5list]
recipe = plone.recipe.command
stop-on-error = true
genbt5list = ${erp5:location}/product/ERP5/bin/genbt5list
command =
169
  ls -ld ${local-bt5-repository:list} ; ${buildout:executable} ${:genbt5list} ${local-bt5-repository:list}
170
update-command = ${:command}
171 172 173 174 175

[bootstrap2.6]
python = python2.6

[rebootstrap]
176
version = 3
177
section = python2.7
178
eggs = slapos.libnetworkcache
179 180 181 182 183 184 185 186 187 188 189 190 191

[itools]
pkgname = itools-0.50.8
location = ${buildout:parts-directory}/${:_buildout_section_name_}
lib = ${:location}/lib
source = ${:location}/src

# ugly itools building sections until itools and setuptools learn to get
# along:

[itools-download]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
192
url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
md5sum = 12704cc354e2201e0921a832bf6b1556
destination = ${itools:source}

[itools-build]
recipe = plone.recipe.command
# reference itools-download:destination instead of itools:source to trigger its
# execution
# here, we unset PYTHONPATH to invoke different python than buildout one.
command =
    cd ${itools-download:destination} &&
    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 &&
    PYTHONPATH= ${python2.6:executable} setup.py install_lib -d ${itools:lib}

update-command = ${:command}
location = ${itools:location}
stop-on-error = true

[products-deps]
# 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 --quiet
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
command =
220 221
  ${subversion:location}/bin/svn checkout -r 98997 ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
  ${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
222 223 224 225 226 227 228 229 230 231 232 233 234
  
[products-upgrade]
# Recipe infrae.subversion is using svn command under the hood, but there is
# no way to pass --trust-server-cert --non-interactive, so in 2.12 falvour
# it is better to evaluate usage of provided subversion command
recipe = plone.recipe.command
svn_param =--trust-server-cert --no-auth-cache --non-interactive --quiet
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = ERP5PropertySheetLegacy
command =
  for product in ERP5PropertySheetLegacy ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/obsolete/products/$product ${:location}/$product || exit 1 ; done
235 236

[erp5_repository_list]
Romain Courteaud's avatar
Romain Courteaud committed
237
repository_id_list = erp5 beteireflow-repository
238 239 240 241 242 243 244 245 246

[erp5]
# Recipe zerokspot.recipe.git is disabled, as is not possible to change its
# environment to use localy delivered git.
# plone.recipe.command can do same job, but it is controllable which binary
# will be used
recipe = plone.recipe.command
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
247 248
repository = http://git.erp5.org/repos/erp5.git
branch = master
249
revision = c93617a5fcdac4526233559b42ec056cc4158c26
250
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
Łukasz Nowak's avatar
Łukasz Nowak committed
251
# ls information added in order to debug .git disappearing
Łukasz Nowak's avatar
Łukasz Nowak committed
252 253 254
update-command = ls -la ${:location}
  ls -ld ${:location}/product/ERP5/bootstrap
  cd ${:location} && ${git:location}/bin/git pull && if [ -n "${:revision}" ]; then echo "Resetting." ; cd ${:location} && ${git:location}/bin/git reset --hard ${:revision} ; fi
255

256 257
[beteireflow-repository]
<= erp5
Romain Courteaud's avatar
Romain Courteaud committed
258
branch = master
Romain Courteaud's avatar
Romain Courteaud committed
259
revision = ce9d2c4cf1b60476c8c51cef34a7e6c299ccb699
260
repository = https://saneftestbot:kucahS5oav6jahch@git.erp5.org/repos/sanef.git
261
# command = (${git:location}/bin/git clone --quiet -b ${:branch} ${:repository} ${:location}) || (rm -fr ${:location} && exit 1)
262

263 264 265
[products]
# XXX: ERP5 related products are not defined as python distributions, so it is
#      required to configure them in declarative manner
266
list =
267

268
[fix-products-paths]
269 270 271
recipe = plone.recipe.command
stop-on-error = true
command =
272
  for DIR in "${products-deps:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
273
  for DIR in "${products-upgrade:location}"; do cd "$DIR"; rm -f Products ; ln -s . Products; touch __init__.py; done
274
  for DIR in "${erp5:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
275
  for DIR in "${beteireflow-repository:location}"; do cd "$DIR"; rm -f Products ; ln -s product Products; touch product/__init__.py; done
276
update-command = ${:command}
277 278 279 280 281 282 283 284 285

[testrunner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
286
  runUnitTest=runUnitTest:main
287 288
scripts = runUnitTest
initialization =
289
  import glob, imp, os, sys
290
  import App # prevent Testing from importing Zope2.App instead of App
291
  import Products
292 293
  Products.__path__[:0] = filter(None,
    os.getenv('INSERT_PRODUCTS_PATH', '').split(os.pathsep))
294
  Products.__path__.extend(reversed('''${products:list}'''.split()))
295
  os.environ['SOFTWARE_HOME'] = os.path.abspath(imp.find_module('Zope2')[1])
296
  os.environ['ZOPE_SCRIPTS'] = ''
Vincent Pelletier's avatar
Vincent Pelletier committed
297
  parts_directory = '''${buildout:parts-directory}'''
298 299 300 301 302 303 304 305 306 307 308
  repository_id_list = \
    '''${erp5_repository_list:repository_id_list}'''.split()[::-1]
  os.environ['erp5_tests_bt5_path'] = ','.join(sum((
    [bt5_path, os.path.join(bt5_path, '*')]
    for bt5_path in (os.path.join(parts_directory, x, 'bt5')
                     for x in repository_id_list)), []))
  sys.path[:0] = [os.path.join(parts_directory, x, 'tests')
                  for x in repository_id_list]
  sys.path[:0] = sum((
    glob.glob(os.path.join(parts_directory, x, 'product', '*', 'tests'))
    for x in repository_id_list), [])
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328

[test_suite_runner]
# XXX: Workaround for fact ERP5Type is not an distribution and does not
#      expose entry point for test runner
recipe = zc.recipe.egg
python = python2.6
eggs = ${eggs:eggs}
extra-paths = ${eggs:extra-paths}
entry-points =
  runTestSuite=Products.ERP5Type.tests.runTestSuite:main
scripts = runTestSuite
initialization =
  import os
  import sys
  import Products
  [Products.__path__.insert(0, p) for p in reversed(os.environ.get('INSERT_PRODUCTS_PATH', '').split(':')) if p]
  Products.__path__.extend(reversed('''${products:list}'''.split()))
  import Zope2
  os.environ['SOFTWARE_HOME'] = os.path.abspath(os.path.dirname(os.path.dirname(Zope2.__file__)))
  os.environ['ZOPE_SCRIPTS'] = ''
329
  repository_id_list = list(reversed('''${erp5_repository_list:repository_id_list}'''.split()))
330
  sys.path[0:0] = ['/'.join(['''${buildout:parts-directory}''', x]) for x in repository_id_list]
331 332 333 334 335 336 337 338 339

[eggs]
recipe = zc.recipe.egg
python = python2.6
eggs =
  ${mysql-python:egg}
  ${lxml-python:egg}
  ${python-ldap-python:egg}
  ${pysvn-python:egg}
340
  ${pycrypto-python:egg}
341 342 343 344
  PyXML
  SOAPpy
  cElementTree
  chardet
Aurel's avatar
Aurel committed
345
  coverage
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
  elementtree
  erp5diff
  ipdb
  mechanize
  numpy
  ordereddict
  paramiko
  ply
  python-magic
  python-memcached
  pytz
  threadframe
  timerserver
  urlnorm
  uuid
  xml_marshaller
  xupdate_processor
  feedparser
  argparse
365
  validictory
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398

# Zope 2.12 with patched acquisition
  ZODB3
  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
  Products.ExternalEditor
  Products.TIDStorage
  Products.Zelenium

# Currently forked in our repository
#    Products.PortalTransforms
# Dependency for our fork of PortalTransforms
  StructuredText

Romain Courteaud's avatar
Romain Courteaud committed
399 400 401 402 403 404 405 406
  slapos.cookbook
  z2loganalyser

bef_dummy =
  # Force dependency
  ${slapos.cookbook-repository:location}
  ${z2loganalyser-repository:location}

407 408 409 410 411 412 413 414 415 416
# 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
interpreter = python2.6
scripts =
  repozo
  runzope
  runzeo
  tidstoraged
  tidstorage_repozo
417
  analyzeZ2log
418 419 420

extra-paths =
  ${itools:location}/lib
421
  ${products-deps:location}
422
  ${products-upgrade:location}
423
  ${erp5:location}
424
  ${beteireflow-repository:location}
425 426 427 428 429 430 431 432 433 434 435 436 437

[mysql-python]
python = python2.6

[lxml-python]
python = python2.6

[python-ldap-python]
python = python2.6

[pysvn-python]
python = python2.6

438 439 440 441 442 443 444 445 446
[slapos-toolbox]
recipe = zc.recipe.egg
python = ${eggs:python}
eggs =
  ${lxml-python:egg}
  slapos.toolbox

scripts =
  killpidfromfile = slapos.systool:killpidfromfile
447
  onetimedownload = slapos.toolbox:onetimedownload
448

449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464
[cloudooo]
recipe = zc.recipe.egg
python = python2.6
eggs =
  ${lxml-python:egg}
  cloudooo.handler.ffmpeg
  cloudooo.handler.imagemagick
  cloudooo.handler.ooo
  cloudooo.handler.pdf
  cloudooo
  PasteScript
scripts =
  paster=cloudooo_paster

[versions]
# Use SlapOS patched zc.buildout
465
zc.buildout = 1.6.0-dev-SlapOS-004
466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488

# pin Acquisition and Products.DCWorkflow to Nexedi flavour of eggs
Acquisition = 2.13.7nxd001
Products.DCWorkflow = 2.2.3nxd002

# Known version with works
numpy = 1.3.0
# Patched version which support python 2.6
PyXML = 0.8.4nxd001
# modified version that works fine for buildout installation
SOAPpy = 0.12.0nxd001
# we are still using this old stable version.
rdiff-backup = 1.0.5

# Zope Known Good Set is incompatible with buildout 1.5.0 in case of
# distribute and zc.buildout, and as ERP5 Appliance trunk wants to use
# the newest versions of buildout infrastructure clear the pin
distribute =
setuptools =

# official pysvn egg does not supports --include-dirs and
# --library-dirs, so we use our modified version
pysvn = 1.7.4nxd006
489
Sphinx = 1.1.2