buildout.cfg 5.77 KB
Newer Older
1
# This file is used to install SlapOS Node itself.
Łukasz Nowak's avatar
Łukasz Nowak committed
2 3
[buildout]
extends =
4
  ../../stack/slapos.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
5
  ../../stack/shacache-client.cfg
6 7 8
  ../gdbm/buildout.cfg
  ../gettext/buildout.cfg
  ../m4/buildout.cfg
9
  ../python-2.7/buildout.cfg
10 11
  ../sqlite3/buildout.cfg
  ../swig/buildout.cfg
Antoine Catton's avatar
Antoine Catton committed
12
  ../patch/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
13 14 15

parts =
  slapos
16 17
  cfg-environment
  sh-environment
18
  py
Łukasz Nowak's avatar
Łukasz Nowak committed
19

Łukasz Nowak's avatar
Łukasz Nowak committed
20

21

Łukasz Nowak's avatar
Łukasz Nowak committed
22 23 24 25 26
# separate from system python
include-site-packages = false
exec-sitecustomize = false
allowed-eggs-from-site-packages =

27
[environment]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
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 32 33
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
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
Łukasz Nowak's avatar
Łukasz Nowak committed
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 38 39 40 41 42 43 44 45 46

[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
47
  LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
48 49 50 51 52 53
output = ${buildout:directory}/environment.cfg

[sh-environment]
# Section exposes SlapOS default environment as sh file.
recipe = collective.recipe.template
input = inline:
54 55 56 57 58 59
  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}"
60
  export PS1="[SlapOS env Active] $PS1"
61
output = ${buildout:directory}/environment.sh
62

63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
##############################################
# Included locally in order to permit we build
# packages offline. 
###############################################
[python-openssl]
recipe = zc.recipe.egg:custom
egg = pyOpenSSL
include-dirs =
  ${openssl:location}/include/
library-dirs =
  ${openssl:location}/lib/
rpath =
  ${openssl:location}/lib/

#############################################

Łukasz Nowak's avatar
Łukasz Nowak committed
79 80
[slapos]
recipe = z3c.recipe.scripts
81
eggs =
82
  ${python-openssl:egg}
83 84
  slapos.libnetworkcache
  zc.buildout
85 86
  ${lxml-python:egg}
  slapos.core
87

Łukasz Nowak's avatar
Łukasz Nowak committed
88 89 90 91
initialization =
  import os
  os.environ['PATH'] = os.path.expandvars('${environment:PATH}')

92 93
# control scripts generation in order to avoid reinstalling bin/buildout
scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
94
  bang = slapos.bang:main
95 96 97 98 99 100
  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
101
  slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
102 103 104 105
  slapgrid-ur = slapos.grid.slapgrid:runUsageReport
  slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
  slapgrid-supervisord = slapos.grid.svcbackend:supervisord
  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 111
[py]
recipe = zc.recipe.egg
112
eggs = 
113 114 115 116
    ${slapos:eggs}
interpreter = py
scripts = py

Łukasz Nowak's avatar
Łukasz Nowak committed
117
[versions]
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
118 119 120
# Use setuptools-1.x for python 2.4/2.5 support
setuptools = 1.4.2

121 122 123 124
# pyOpenSSL 0.14 uses cryptograpic which is
# incompatible with slapos package generation. 
pyOpenSSL = 0.13.1

Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
125 126
Jinja2 = 2.7.2
MarkupSafe = 0.19
127 128
Werkzeug = 0.9.4
cmd2 = 0.6.7
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
129
collective.recipe.template = 1.11
130
itsdangerous = 0.23
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
131
lxml = 3.3.3
132
meld3 = 0.6.10
133
netaddr = 0.7.10
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
134
prettytable = 0.7.3
135
pyparsing = 2.0.1
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
136
six = 1.6.1
137
slapos.core = 1.0.4
138
slapos.libnetworkcache = 0.13.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
139
slapos.recipe.cmmi = 0.2
140
xml-marshaller = 0.9.7
141
z3c.recipe.scripts = 1.0.1
142 143

# Required by:
144
# slapos.core==1.0.4
145
Flask = 0.10.1
146 147

# Required by:
148 149
# slapos.core==1.0.4
cliff = 1.4.5
150 151

# Required by:
152
# slapos.core==1.0.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
153
netifaces = 0.8-1
154 155

# Required by:
156
# slapos.core==1.0.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
157
requests = 2.2.1
158 159

# Required by:
160
# cliff==1.4.5
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
161
stevedore = 0.14.1
162 163

# Required by:
164
# slapos.core==1.0.4
165
supervisor = 3.0
166 167

# Required by:
168
# slapos.core==1.0.4
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
169
zope.interface = 4.1.0