Merge remote-tracking branch 'origin/master' into erp5-component
[slapos.git] / component / slapos / buildout.cfg
1 # This file is used to install SlapOS Node itself.
2 [buildout]
3 extends =
4   ../../stack/slapos.cfg
5   ../../stack/shacache-client.cfg
6   ../gdbm/buildout.cfg
7   ../gettext/buildout.cfg
8   ../m4/buildout.cfg
9   ../python-2.7/buildout.cfg
10   ../sqlite3/buildout.cfg
11   ../swig/buildout.cfg
12   ../patch/buildout.cfg
13
14 parts =
15   slapos
16   cfg-environment
17   sh-environment
18   py
19
20
21
22 # separate from system python
23 include-site-packages = false
24 exec-sitecustomize = false
25 allowed-eggs-from-site-packages =
26
27 [environment]
28 # Note: For now original PATH is appended to the end, as not all tools are
29 #       provided by SlapOS
30 PATH=${bison:location}/bin:${bzip2:location}/bin:${gettext:location}/bin:${glib:location}/bin:${libxml2:location}/bin:${libxslt:location}/bin:${m4:location}/bin:${ncurses:location}/bin:${openssl:location}/bin:${pkgconfig:location}/bin:${python2.7:location}/bin:${readline:location}/bin:${sqlite3:location}/bin:${swig:location}/bin:${buildout:bin-directory}:${patch:location}/bin:$PATH
31 CFLAGS=-I${bzip2:location}/include -I${gdbm:location}/include -I${gettext:location}/include -I${glib:location}/include -I${libxml2:location}/include -I${libxslt:location}/include -I${ncurses:location}/include -I${openssl:location}/include -I${popt:location}/include -I${readline:location}/include -I${sqlite3:location}/include -I${zlib:location}/include
32 CPPFLAGS=${:CFLAGS}
33 LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib -L${gdbm:location}/lib -Wl,-rpath=${gdbm:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -L${glib:location}/lib -Wl,-rpath=${glib:location}/lib -L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${libxslt:location}/lib -Wl,-rpath=${libxslt:location}/lib -L${ncurses:location}/lib -Wl,-rpath=${ncurses:location}/lib -L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${popt:location}/lib -Wl,-rpath=${popt:location}/lib -L${readline:location}/lib -Wl,-rpath=${readline:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
34 PKG_CONFIG_PATH=${glib:location}/lib/pkgconfig:${libxml2:location}/lib/pkgconfig:${libxslt:location}/lib/pkgconfig:${openssl:location}/lib/pkgconfig:${popt:location}/lib/pkgconfig:${python2.7:location}/lib/pkgconfig:${sqlite3:location}/lib/pkgconfig
35 LD_LIBRARY_PATH=${bzip2:location}/lib:${gdbm:location}/lib:${gettext:location}/lib:${glib:location}/lib:${libxml2:location}/lib:${libxslt:location}/lib:${ncurses:location}/lib:${openssl:location}/lib:${popt:location}/lib:${readline:location}/lib:${sqlite3:location}/lib:${zlib:location}/lib
36
37 [cfg-environment]
38 # Section exposes SlapOS default environment as configuration file.
39 recipe = collective.recipe.template
40 input = inline:
41   [environment]
42   PATH=${environment:PATH}
43   CFLAGS=${environment:CFLAGS}
44   CPPFLAGS=${environment:CPPFLAGS}
45   LDFLAGS=${environment:LDFLAGS}
46   PKG_CONFIG_PATH=${environment:PKG_CONFIG_PATH}
47   LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
48 output = ${buildout:directory}/environment.cfg
49
50 [sh-environment]
51 # Section exposes SlapOS default environment as sh file.
52 recipe = collective.recipe.template
53 input = inline:
54   export PATH="${environment:PATH}"
55   export CFLAGS="${environment:CFLAGS}"
56   export CPPFLAGS="${environment:CPPFLAGS}"
57   export LDFLAGS="${environment:LDFLAGS}"
58   export PKG_CONFIG_PATH="${environment:PKG_CONFIG_PATH}"
59   export LD_LIBRARY_PATH="${environment:LD_LIBRARY_PATH}"
60   export PS1="[SlapOS env Active] $PS1"
61 output = ${buildout:directory}/environment.sh
62
63 ##############################################
64 # Included locally in order to permit we build
65 # packages offline. 
66 ###############################################
67 [python-openssl]
68 recipe = zc.recipe.egg:custom
69 egg = pyOpenSSL
70 include-dirs =
71   ${openssl:location}/include/
72 library-dirs =
73   ${openssl:location}/lib/
74 rpath =
75   ${openssl:location}/lib/
76
77 #############################################
78
79 [slapos]
80 recipe = z3c.recipe.scripts
81 eggs =
82   ${python-openssl:egg}
83   slapos.libnetworkcache
84   zc.buildout
85   ${lxml-python:egg}
86   slapos.core
87
88 initialization =
89   import os
90   os.environ['PATH'] = os.path.expandvars('${environment:PATH}')
91
92 # control scripts generation in order to avoid reinstalling bin/buildout
93 scripts =
94   bang = slapos.bang:main
95   generate-signature-key = slapos.signature:run
96   slapconsole = slapos.console:run
97   slapos-request = slapos.console:request
98   slapformat = slapos.format:main
99   slapgrid = slapos.grid.slapgrid:run
100   slapgrid-cp = slapos.grid.slapgrid:runComputerPartition
101   slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
102   slapgrid-ur = slapos.grid.slapgrid:runUsageReport
103   slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
104   slapgrid-supervisord = slapos.grid.svcbackend:supervisord
105   slapproxy = slapos.proxy:main
106   slapproxy-query = slapos.proxy.query:main
107   slapos = slapos.entry:main
108   slapos-watchdog = slapos.grid.watchdog:main
109
110 [py]
111 recipe = zc.recipe.egg
112 eggs = 
113     ${slapos:eggs}
114 interpreter = py
115 scripts = py
116
117 [versions]
118 # Use setuptools-1.x for python 2.4/2.5 support
119 setuptools = 1.4.2
120
121 # pyOpenSSL 0.14 uses cryptograpic which is
122 # incompatible with slapos package generation. 
123 pyOpenSSL = 0.13.1
124
125 Jinja2 = 2.7.2
126 MarkupSafe = 0.19
127 Werkzeug = 0.9.4
128 cmd2 = 0.6.7
129 collective.recipe.template = 1.11
130 itsdangerous = 0.24
131 lxml = 3.3.4
132 meld3 = 0.6.10
133 mr.developer = 1.30
134 netaddr = 0.7.11
135 prettytable = 0.7.3-nxd001
136 pyparsing = 2.0.1
137 six = 1.6.1
138 slapos.core = 1.0.4
139 slapos.libnetworkcache = 0.14.1
140 slapos.recipe.cmmi = 0.2
141 stevedore = 0.15
142 xml-marshaller = 0.9.7
143 z3c.recipe.scripts = 1.0.1
144
145 #Required by:
146 #slapos.core 1.0.3
147 Flask = 0.10.1
148
149 #Required by:
150 #slapos.core 1.0.3
151 cliff = 1.6.1
152
153 #Required by:
154 #slapos.core 1.0.3
155 netifaces = 0.8-1
156
157 #Required by:
158 #slapos.core 1.0.3
159 requests = 2.2.1
160
161 #Required by:
162 #slapos.core 1.0.3
163 supervisor = 3.0
164
165 #Required by:
166 #slapos.core 1.0.3
167 zope.interface = 4.1.1