erp5-2.12.cfg 5.8 KB
Newer Older
1 2
# XXX refactor parts shared with erp5.cfg into a common file
[buildout]
3 4 5
extends =
  mysql-tritonn-5.0.cfg
  python-2.6.cfg
6
  lxml-python.cfg
7
  mysql-python.cfg
8
  python-ldap-python.cfg
9
  pysvn-python.cfg
10 11
  subversion.cfg
  git.cfg
12
  glib.cfg
13

14 15 16 17 18 19 20
parts =
  itools-build
  mysql-python
  products-other
  products-deps
  products-erp5

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

24 25 26 27
[itools-download]
recipe = hexagonit.recipe.download
strip-top-level-dir = true
url = http://download.hforge.org/itools/0.50/${itools:pkgname}.tar.gz
Łukasz Nowak's avatar
Łukasz Nowak committed
28
md5sum = 12704cc354e2201e0921a832bf6b1556
29
destination = ${itools:source}
30 31

[itools-build]
32
recipe = plone.recipe.command
33 34
# reference itools-download:destination instead of itools:source to trigger its
# execution
35
command =
36 37
    cd ${itools-download:destination} &&
    ${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 &&
38
    ${python2.6:executable} setup.py install_lib -d ${itools:lib}
39

40 41 42
update-command = ${:command}
location = ${itools:location}
stop-on-error = true
43

44
[products-deps]
45 46 47 48 49
# 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
Łukasz Nowak's avatar
Łukasz Nowak committed
50
svn_param =--trust-server-cert --non-interactive --quiet
51
location = ${buildout:parts-directory}/${:_buildout_section_name_}
52
stop-on-error = true
53
command =
54
  ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
Łukasz Nowak's avatar
Łukasz Nowak committed
55
  ${git:location}/bin/git clone --quiet git://git.hforge.org/Localizer.git ${:location}/Localizer
56
update-command =
57 58
  ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.plone.org/svn/collective/ExtFile/trunk ${:location}/ExtFile &&
  cd ${:location}/Localizer &&
Łukasz Nowak's avatar
Łukasz Nowak committed
59
  ${git:location}/bin/git pull --quiet
60

61 62 63 64 65
[products-erp5]
# 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
Łukasz Nowak's avatar
Łukasz Nowak committed
66
svn_param =--trust-server-cert --non-interactive --quiet
67 68 69 70 71
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = AGProjects CMFActivity CMFCategory ERP5 ERP5Catalog ERP5Form ERP5Legacy ERP5OOo ERP5Security ERP5SyncML ERP5Type ERP5Wizard ERP5Workflow Formulator HBTreeFolder2 MailTemplates PortalTransforms TimerService ZMySQLDA ZMySQLDDA ZSQLCatalog
command =
72
  for product in ${:product_list} ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/products/$product ${:location}/$product || exit 1 ; done
73

74 75 76 77 78
[products-erp5-development]
# 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
Łukasz Nowak's avatar
Łukasz Nowak committed
79
svn_param =--trust-server-cert --non-interactive --quiet
80 81 82 83 84
location = ${buildout:parts-directory}/${:_buildout_section_name_}
stop-on-error = true
update-command = ${:command}
product_list = ERP5Subversion
command =
85
  for product in ${:product_list} ; do ${subversion:location}/bin/svn checkout ${:svn_param} https://svn.erp5.org/repos/public/erp5/trunk/products/$product ${:location}/$product || exit 1 ; done
86

87 88 89
[products]
recipe = plone.recipe.command
paths =
90
	${products-deps:location}
91 92 93 94 95 96 97 98
command =
  echo "Product folders: ${:paths}"
update-command = ${:command}

[eggs]
recipe = zc.recipe.egg
eggs =
  ${mysql-python:egg}
99
  ${lxml-python:egg}
100
  ${python-ldap-python:egg}
101
  ${pysvn-python:egg}
102 103 104
  PyXML
  SOAPpy
  cElementTree
105
  chardet
106 107 108 109 110
  elementtree
  erp5diff
  ipdb
  mechanize
  numpy
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
111
  ordereddict
112 113 114 115 116 117 118 119
  paramiko
  ply
  python-memcached
  pytz
  simplejson
  threadframe
  timerserver
  uuid
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
120 121
  xml_marshaller
  xupdate_processor
Ivan Tyagov's avatar
Ivan Tyagov committed
122
  feedparser
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

# Zope 2.12 with patched acquisition
  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
146
    Products.ExternalEditor
147 148
    Products.Zelenium

149 150
# Currently forked in our repository
#    Products.PortalTransforms
151 152
# Dependency for our fork of PortalTransforms
    StructuredText
153 154

extra-paths =
155
  ${itools:lib}
156 157

dependent-scripts = true
158 159 160 161 162 163 164
# XXX getting python from [buildout] for the benefit of instance recipes
# which should not attempt to compile python again
#python = python2.6

# 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
165 166
interpreter = python2.6
scripts =
167 168
	python=${:interpreter}
	ipython=i${:interpreter}
169

170 171 172 173 174 175 176
[precache-eggs]
# recipe to populate the egg cache during software-home build, so instances can
# run in offline mode. Hence, no scripts
recipe = zc.recipe.egg
scripts =
eggs =
  collective.recipe.supervisor
177
  collective.recipe.template
178 179
  erp5.recipe.mysqlserver
  erp5.recipe.ooodinstance
180
  erp5.recipe.standaloneinstance
181
  erp5.recipe.testrunner
182
  plone.recipe.command
183
  plone.recipe.zope2instance
184
  supervisor
185

186
[omelette]
187 188
# XXX don't use this part until this omelette bug is fixed:
# https://bugs.launchpad.net/collective.buildout/+bug/553005
189 190 191
recipe = collective.recipe.omelette
eggs = ${eggs:eggs}
packages =
192
      ${itools:lib} .
193 194
products =
    ${products:paths}