buildout.cfg 6.31 KB
Newer Older
1 2
# This file is used to install SlapOS Node itself.

Łukasz Nowak's avatar
Łukasz Nowak committed
3 4
[buildout]
extends =
Łukasz Nowak's avatar
Łukasz Nowak committed
5
  ../../stack/shacache-client.cfg
6 7 8 9 10 11 12
  ../bison/buildout.cfg
  ../bzip2/buildout.cfg
  ../gdbm/buildout.cfg
  ../gettext/buildout.cfg
  ../glib/buildout.cfg
  ../libxml2/buildout.cfg
  ../libxslt/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
13
  ../lxml-python/buildout.cfg
14 15 16 17 18
  ../m4/buildout.cfg
  ../ncurses/buildout.cfg
  ../openssl/buildout.cfg
  ../pkgconfig/buildout.cfg
  ../popt/buildout.cfg
19
  ../python-2.7/buildout.cfg
20
  ../python-openssl/buildout.cfg
21 22 23 24
  ../readline/buildout.cfg
  ../sqlite3/buildout.cfg
  ../swig/buildout.cfg
  ../zlib/buildout.cfg
Antoine Catton's avatar
Antoine Catton committed
25
  ../patch/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
26 27 28

parts =
  slapos
29 30
  cfg-environment
  sh-environment
31
  py
Łukasz Nowak's avatar
Łukasz Nowak committed
32 33 34

find-links =
  http://www.nexedi.org/static/packages/source/slapos.buildout/
35
  http://www.nexedi.org/static/packages/source/hexagonit.recipe.download/
Łukasz Nowak's avatar
Łukasz Nowak committed
36 37 38

versions = versions

Łukasz Nowak's avatar
Łukasz Nowak committed
39 40 41 42 43 44 45 46 47
allow-hosts =
  *.googlecode.com
  *.nexedi.org
  *.python.org
  alastairs-place.net
  code.google.com
  github.com
  peak.telecommunity.com

48 49
unzip = true

Łukasz Nowak's avatar
Łukasz Nowak committed
50 51 52 53 54
# separate from system python
include-site-packages = false
exec-sitecustomize = false
allowed-eggs-from-site-packages =

55
[environment]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
56
# Note: For now original PATH is appended to the end, as not all tools are
57
#       provided by SlapOS
58
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
59 60 61
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
CPPFLAGS=${:CFLAGS}
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
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
62
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
Łukasz Nowak's avatar
Łukasz Nowak committed
63
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
64 65 66 67 68 69 70 71 72 73 74

[cfg-environment]
# Section exposes SlapOS default environment as configuration file.
recipe = collective.recipe.template
input = inline:
  [environment]
  PATH=${environment:PATH}
  CFLAGS=${environment:CFLAGS}
  CPPFLAGS=${environment:CPPFLAGS}
  LDFLAGS=${environment:LDFLAGS}
  PKG_CONFIG_PATH=${environment:PKG_CONFIG_PATH}
Łukasz Nowak's avatar
Łukasz Nowak committed
75
  LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
76 77 78 79 80 81
output = ${buildout:directory}/environment.cfg

[sh-environment]
# Section exposes SlapOS default environment as sh file.
recipe = collective.recipe.template
input = inline:
82 83 84 85 86 87
  export PATH="${environment:PATH}"
  export CFLAGS="${environment:CFLAGS}"
  export CPPFLAGS="${environment:CPPFLAGS}"
  export LDFLAGS="${environment:LDFLAGS}"
  export PKG_CONFIG_PATH="${environment:PKG_CONFIG_PATH}"
  export LD_LIBRARY_PATH="${environment:LD_LIBRARY_PATH}"
88
  export PS1="[SlapOS env Active] $PS1"
89
output = ${buildout:directory}/environment.sh
90

91 92
[lxml-python]
python = python2.7
93 94 95

[python-openssl]
python = python2.7
96

Łukasz Nowak's avatar
Łukasz Nowak committed
97 98
[slapos]
recipe = z3c.recipe.scripts
99
python = python2.7
100
eggs =
101
  ${python-openssl:egg}
102 103
  slapos.libnetworkcache
  zc.buildout
104 105
  ${lxml-python:egg}
  slapos.core
106

Łukasz Nowak's avatar
Łukasz Nowak committed
107 108 109 110
initialization =
  import os
  os.environ['PATH'] = os.path.expandvars('${environment:PATH}')

111 112
# control scripts generation in order to avoid reinstalling bin/buildout
scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
113
  bang = slapos.bang:main
114 115 116 117 118 119
  generate-signature-key = slapos.signature:run
  slapconsole = slapos.console:run
  slapos-request = slapos.console:request
  slapformat = slapos.format:main
  slapgrid = slapos.grid.slapgrid:run
  slapgrid-cp = slapos.grid.slapgrid:runComputerPartition
Łukasz Nowak's avatar
Łukasz Nowak committed
120
  slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
121 122 123 124
  slapgrid-ur = slapos.grid.slapgrid:runUsageReport
  slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
  slapgrid-supervisord = slapos.grid.svcbackend:supervisord
  slapproxy = slapos.proxy:main
125
  slapproxy-query = slapos.proxy.query:main
126
  slapos = slapos.entry:main
127
  slapos-watchdog = slapos.grid.watchdog:main
128

129 130
[py]
recipe = zc.recipe.egg
131
eggs = 
132
    ${slapos:eggs}
133
python = python2.7
134 135 136
interpreter = py
scripts = py

Łukasz Nowak's avatar
Łukasz Nowak committed
137
[versions]
138
# Use our own buildout version
139
zc.buildout = 1.6.0-dev-SlapOS-012
140

Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
141 142 143 144
# Force to use zc.recipe.egg 1.x
zc.recipe.egg = 1.3.2

# Use own version of h.r.download to be able to open archives not supported by python2.x: .xz
145
hexagonit.recipe.download = 1.7nxd002
146

Rafael Monnerat's avatar
Rafael Monnerat committed
147
slapos.core = 1.0.2
148
Jinja2 = 2.7.1
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
149
MarkupSafe = 0.18
150 151
Pygments = 1.6
Werkzeug = 0.9.4
152
buildout-versions = 1.7
153
cmd2 = 0.6.7
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
154
collective.recipe.template = 1.10
155 156
itsdangerous = 0.23
lxml = 3.2.3
157
meld3 = 0.6.10
158
netaddr = 0.7.10
159 160 161
prettytable = 0.7.2
pyOpenSSL = 0.13.1
pyparsing = 2.0.1
162
setuptools = 1.1.6
163
slapos.libnetworkcache = 0.13.4
164
slapos.recipe.cmmi = 0.1.1
165
xml-marshaller = 0.9.7
166
z3c.recipe.scripts = 1.0.1
167 168

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
169
# slapos.core==1.0.2
170
Flask = 0.10.1
171 172

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
173
# slapos.core==1.0.2
174 175 176
bpython = 0.12

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
177
# slapos.core==1.0.2
178 179 180
cliff = 1.4.5

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
181
# slapos.core==1.0.2
182 183 184
ipython = 1.1.0

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
185
# slapos.core==1.0.2
186
netifaces = 0.8
187 188

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
189
# slapos.core==1.0.2
190
requests = 2.1.0
191 192

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
193
# slapos.core==1.0.2
194
supervisor = 3.0
195 196

# Required by:
Rafael Monnerat's avatar
Rafael Monnerat committed
197
# slapos.core==1.0.2
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
198
zope.interface = 4.0.5