buildout.cfg 4.97 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
5 6 7
  ../gdbm/buildout.cfg
  ../gettext/buildout.cfg
  ../m4/buildout.cfg
8
  ../python-2.7/buildout.cfg
9 10
  ../sqlite3/buildout.cfg
  ../swig/buildout.cfg
Antoine Catton's avatar
Antoine Catton committed
11
  ../patch/buildout.cfg
Alain Takoudjou's avatar
Alain Takoudjou committed
12
  ../firewalld/buildout.cfg
Łukasz Nowak's avatar
Łukasz Nowak committed
13 14 15

parts =
  slapos
16 17
  cfg-environment
  sh-environment
18
  py
Alain Takoudjou's avatar
Alain Takoudjou committed
19
  firewalld-patch
Łukasz Nowak's avatar
Łukasz Nowak committed
20

Łukasz Nowak's avatar
Łukasz Nowak committed
21

22

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

28
[environment]
Cédric de Saint Martin's avatar
Cédric de Saint Martin committed
29
# Note: For now original PATH is appended to the end, as not all tools are
30
#       provided by SlapOS
31
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
32 33 34
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
35
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
36
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
37 38 39 40 41 42 43 44 45 46 47

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

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

64 65
##############################################
# Included locally in order to permit we build
66
# packages offline.
67 68 69 70 71 72 73 74 75 76 77 78 79
###############################################
[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
80
[slapos]
81
recipe = zc.recipe.egg
82
eggs =
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
83
  ${lxml-python:egg}
84
  ${python-cffi:egg}
Kazuhiko Shiozaki's avatar
Kazuhiko Shiozaki committed
85 86
  ${python-PyYAML:egg}
  ${python-cliff:egg}
87 88
  ${python-cryptography:egg}
  pyOpenSSL
89 90
  slapos.libnetworkcache
  zc.buildout
91
  slapos.core
92

Łukasz Nowak's avatar
Łukasz Nowak committed
93 94 95 96
initialization =
  import os
  os.environ['PATH'] = os.path.expandvars('${environment:PATH}')

97 98
# control scripts generation in order to avoid reinstalling bin/buildout
scripts =
Łukasz Nowak's avatar
Łukasz Nowak committed
99
  bang = slapos.bang:main
100 101 102 103 104 105
  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
106
  slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
107 108 109 110
  slapgrid-ur = slapos.grid.slapgrid:runUsageReport
  slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
  slapgrid-supervisord = slapos.grid.svcbackend:supervisord
  slapproxy = slapos.proxy:main
111
  slapproxy-query = slapos.proxy.query:main
112
  slapos = slapos.entry:main
113
  slapos-watchdog = slapos.grid.watchdog:main
114

115 116
[py]
recipe = zc.recipe.egg
117
eggs =
118 119 120
    ${slapos:eggs}
interpreter = py
scripts = py