Expose LD_LIBRARY_PATH too.
[slapos.git] / component / slapos / buildout.cfg
1 [buildout]
2 extends =
3   ../../stack/shacache-client.cfg
4   ../bison/buildout.cfg
5   ../bzip2/buildout.cfg
6   ../gdbm/buildout.cfg
7   ../gettext/buildout.cfg
8   ../glib/buildout.cfg
9   ../libxml2/buildout.cfg
10   ../libxslt/buildout.cfg
11   ../lxml-python/buildout.cfg
12   ../m2crypto/buildout.cfg
13   ../m4/buildout.cfg
14   ../ncurses/buildout.cfg
15   ../openssl/buildout.cfg
16   ../pkgconfig/buildout.cfg
17   ../popt/buildout.cfg
18   ../python-2.7/buildout.cfg
19   ../readline/buildout.cfg
20   ../sqlite3/buildout.cfg
21   ../swig/buildout.cfg
22   ../zlib/buildout.cfg
23
24 parts =
25   slapos
26   cfg-environment
27   sh-environment
28
29 find-links =
30   http://www.nexedi.org/static/packages/source/slapos.buildout/
31
32 versions = versions
33
34 allow-hosts =
35   *.googlecode.com
36   *.nexedi.org
37   *.python.org
38   alastairs-place.net
39   code.google.com
40   github.com
41   peak.telecommunity.com
42
43 # separate from system python
44 include-site-packages = false
45 exec-sitecustomize = false
46 allowed-eggs-from-site-packages =
47
48 [environment]
49 # Note: For now original PATH is appeneded to the end, as not all tools are
50 #       provided by SlapOS
51 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}:$PATH
52 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
53 CPPFLAGS=${:CFLAGS}
54 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
55 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/pkconfig:${sqlite3:location}/lib/pkconfig
56 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
57
58 [cfg-environment]
59 # Section exposes SlapOS default environment as configuration file.
60 recipe = collective.recipe.template
61 input = inline:
62   [environment]
63   PATH=${environment:PATH}
64   CFLAGS=${environment:CFLAGS}
65   CPPFLAGS=${environment:CPPFLAGS}
66   LDFLAGS=${environment:LDFLAGS}
67   PKG_CONFIG_PATH=${environment:PKG_CONFIG_PATH}
68   LD_LIBRARY_PATH=${environment:LD_LIBRARY_PATH}
69 output = ${buildout:directory}/environment.cfg
70
71 [sh-environment]
72 # Section exposes SlapOS default environment as sh file.
73 recipe = collective.recipe.template
74 input = inline:
75   PATH="${environment:PATH}"
76   CFLAGS="${environment:CFLAGS}"
77   CPPFLAGS="${environment:CPPFLAGS}"
78   LDFLAGS="${environment:LDFLAGS}"
79   PKG_CONFIG_PATH="${environment:PKG_CONFIG_PATH}"
80   LD_LIBRARY_PATH="${environment:LD_LIBRARY_PATH}"
81 output = ${buildout:directory}/environment.sh
82
83 [lxml-python]
84 python = python2.7
85
86 [M2Crypto]
87 python = python2.7
88
89 [slapos]
90 recipe = z3c.recipe.scripts
91 python = python2.7
92 eggs =
93   ${M2Crypto:egg}
94   slapos.libnetworkcache
95   zc.buildout
96   ${lxml-python:egg}
97   slapos.core
98
99 # control scripts generation in order to avoid reinstalling bin/buildout
100 scripts =
101   generate-signature-key = slapos.signature:run
102   slapconsole = slapos.console:run
103   slapos-request = slapos.console:request
104   slapformat = slapos.format:main
105   slapgrid = slapos.grid.slapgrid:run
106   slapgrid-sr = slapos.grid.slapgrid:runSoftwareRelease
107   slapgrid-cp = slapos.grid.slapgrid:runComputerPartition
108   slapgrid-ur = slapos.grid.slapgrid:runUsageReport
109   slapgrid-supervisorctl = slapos.grid.svcbackend:supervisorctl
110   slapgrid-supervisord = slapos.grid.svcbackend:supervisord
111   slapproxy = slapos.proxy:main
112
113 [versions]
114 zc.buildout = 1.5.3-dev-SlapOS-008