Merge branch 'erp5' into erp5-z2.13
[slapos.git] / component / python-2.7 / buildout.cfg
1 [buildout]
2 extends =
3   ../bzip2/buildout.cfg
4   ../gdbm/buildout.cfg
5   ../gettext/buildout.cfg
6   ../libexpat/buildout.cfg
7   ../ncurses/buildout.cfg
8   ../openssl/buildout.cfg
9   ../readline/buildout.cfg
10   ../sqlite3/buildout.cfg
11   ../zlib/buildout.cfg
12   ../file/buildout.cfg
13
14 parts =
15     python2.7
16
17 [bootstrap2.7]
18 recipe = zc.recipe.egg
19 eggs = zc.buildout
20 suffix =
21 scripts =
22     buildout=bootstrap2.7
23 arguments = sys.argv[1:] + ["bootstrap"]
24 python = python2.7
25
26 [python2.7]
27 recipe = slapos.recipe.cmmi
28 package_version = 2.7.4
29 package_version_suffix =
30 md5sum = 62704ea0f125923208d84ff0568f7d50
31
32 depends =
33   ${gdbm:version}
34 # This is actually the default setting for prefix, but we can't use it in
35 # other settings in this part if we don't set it explicitly here.
36 prefix = ${buildout:parts-directory}/${:_buildout_section_name_}
37 version = 2.7
38 executable = ${:prefix}/bin/python${:version}
39
40 url =
41   http://python.org/ftp/python/${:package_version}/Python-${:package_version}${:package_version_suffix}.tar.bz2
42 configure-options =
43   --enable-ipv6
44   --enable-unicode=ucs4
45   --with-system-expat
46   --with-threads
47 # Profiled build:
48 make-binary =
49 make-targets = make profile-opt && make install
50
51 # the entry "-Wl,-rpath=${file:location}/lib" below is needed by python-magic,
52 # which would otherwise load the system libmagic.so with ctypes
53 environment =
54   CPPFLAGS=-I${zlib:location}/include -I${readline:location}/include -I${libexpat:location}/include -I${ncurses:location}/include -I${ncurses:location}/include/ncursesw -I${bzip2:location}/include  -I${gdbm:location}/include -I${openssl:location}/include -I${sqlite3:location}/include -I${gettext:location}/include
55   LDFLAGS=-L${zlib:location}/lib -L${readline:location}/lib -L${libexpat:location}/lib -L${ncurses:location}/lib -L${bzip2:location}/lib -L${gdbm:location}/lib -L${openssl:location}/lib -L${sqlite3:location}/lib -Wl,-rpath=${zlib:location}/lib -Wl,-rpath=${readline:location}/lib -Wl,-rpath=${libexpat:location}/lib -Wl,-rpath=${ncurses:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${gdbm:location}/lib -Wl,-rpath=${openssl:location}/lib -Wl,-rpath=${sqlite3:location}/lib -L${gettext:location}/lib -Wl,-rpath=${gettext:location}/lib -Wl,-rpath=${file:location}/lib