specify patch and hook files directly in parts using slapos.recipe.cmmi.
[slapos.git] / component / python-2.4 / buildout.cfg
1 [buildout]
2 extends =
3   ../bzip2/buildout.cfg
4   ../gdbm/buildout.cfg
5   ../gettext/buildout.cfg
6   ../ncurses/buildout.cfg
7   ../openssl/buildout.cfg
8   ../readline/buildout.cfg
9   ../sqlite3/buildout.cfg
10   ../zlib/buildout.cfg
11
12 parts =
13     pythonbin2.4
14
15 [python2.4-dbm-patch]
16 recipe = hexagonit.recipe.download
17 # original patch from http://bugs.gentoo.org/attachment.cgi?id=109117
18 url = ${:_profile_base_location_}/${:filename}
19 md5sum = 8611020af1463b42f253ac73a91b09a1
20 download-only = true
21 filename = python2.4-dbm.patch
22
23 [python2.4-no_system_inc_dirs-patch]
24 recipe = hexagonit.recipe.download
25 url = ${:_profile_base_location_}/${:filename}
26 md5sum = 65c1193ac42c15109be0e6f9b7a671b8
27 download-only = true
28 filename = python2.4-no_system_inc_dirs.patch
29
30 [python2.4-CPPFLAGS-patch]
31 recipe = hexagonit.recipe.download
32 url = ${:_profile_base_location_}/${:filename}
33 md5sum = 912b6d4b107e3f382995a4d3afcd3eca
34 download-only = true
35 filename = python2.4-backport-CPPFLAGS-setup-from-python2.6.patch
36
37 [python2.4]
38 recipe = slapos.recipe.cmmi
39 # This is actually the default setting for prefix, but we can't use it in
40 # other settings in this part if we don't set it explicitly here.
41 prefix = ${buildout:parts-directory}/${:_buildout_section_name_}
42 version = 2.4
43 package_version = ${:version}.6
44 executable = ${:prefix}/bin/python${:version}
45
46 python_version_major = 2.4
47 python_version_minor = 6
48 python_version_full = ${:python_version_major}.${:python_version_minor}
49 url =
50   http://python.org/ftp/python/${:python_version_full}/Python-${:python_version_full}.tgz
51 patches =
52         ${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename}
53         ${python2.4-no_system_inc_dirs-patch:location}/${python2.4-no_system_inc_dirs-patch:filename}
54         ${python2.4-CPPFLAGS-patch:location}/${python2.4-CPPFLAGS-patch:filename}
55
56 configure-options =
57   --enable-unicode=ucs4
58   --with-threads
59
60 environment =
61   CPPFLAGS=-I${zlib:location}/include -I${readline: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
62   LDFLAGS=-L${zlib:location}/lib -L${readline: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=${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
63
64 [pythonbin2.4]
65 # XXX/Note: This is hackish way to have fully featured python interpreter
66 recipe = zc.recipe.egg:scripts
67 python = python2.4
68 eggs = ${eggs:eggs}
69   invokepython>=0.4
70 extra-paths =
71   ${zope-2.8:location}/lib/python
72 scripts =
73   invokepython=python${python2.4:python_version_major}
74   ipython=ipython${python2.4:python_version_major}
75
76 [bootstrap2.4]
77 recipe = zc.recipe.egg
78 eggs = zc.buildout
79 suffix =
80 scripts =
81     buildout=bootstrap2.4
82 arguments = sys.argv[1:] + ["bootstrap"]
83 suffix = 2.4
84 python = python2.4