python-2.4.cfg 2.67 KB
Newer Older
1
[buildout]
2 3 4 5 6 7 8 9 10 11
extends =
  ../software-profiles/bzip2.cfg
  ../software-profiles/gdbm.cfg
  ../software-profiles/gettext.cfg
  ../software-profiles/libdb.cfg
  ../software-profiles/ncurses.cfg
  ../software-profiles/openssl.cfg
  ../software-profiles/readline.cfg
  ../software-profiles/sqlite3.cfg
  ../software-profiles/zlib.cfg
12 13
  ../software-profiles/python-common.cfg
  ../profiles/bootstrap.cfg
14 15
  ../profiles/links.cfg

16
parts =
17
    pythonbin2.4
18

19 20
[python2.4-dbm-patch]
recipe = hexagonit.recipe.download
21 22
# original patch from http://bugs.gentoo.org/attachment.cgi?id=109117
url = http://www.nexedi.org/static/patches/${:filename}
Łukasz Nowak's avatar
Łukasz Nowak committed
23
md5sum = 8611020af1463b42f253ac73a91b09a1
24
download-only = true
25
filename = python2.4-dbm.patch
26

27
[python2.4]
28 29 30 31 32 33 34 35
recipe = hexagonit.recipe.cmmi
# This is actually the default setting for prefix, but we can't use it in
# other settings in this part if we don't set it explicitly here.
prefix = ${buildout:parts-directory}/${:_buildout_section_name_}
version = 2.4
package_version = ${:version}.6
executable = ${:prefix}/bin/python${:version}

36
python_version_major = 2.4
37
python_version_minor = 6
38 39 40
python_version_full = ${:python_version_major}.${:python_version_minor}
url =
  http://python.org/ftp/python/${:python_version_full}/Python-${:python_version_full}.tgz
41 42
patches =
	${python2.4-dbm-patch:location}/${python2.4-dbm-patch:filename}
43 44 45
configure-options =
  --enable-unicode=ucs4
  --with-threads
46

47 48 49 50
environment =
  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${libdb:location}/include -I${gettext:location}/include
  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 -L${libdb:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${readline:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${bzip2:location}/lib -Wl,-rpath -Wl,${gdbm:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib -Wl,-rpath -Wl,${sqlite3:location}/lib -Wl,-rpath -Wl,${libdb:location}/lib -L${gettext:location}/lib -Wl,-rpath -Wl,${gettext:location}/lib

51 52 53
[pythonbin2.4]
# XXX/Note: This is hackish way to have fully featured python interpreter
recipe = zc.recipe.egg:scripts
54
python = python2.4
55
eggs = ${eggs:eggs}
56
  invokepython>=0.4
57 58 59 60
extra-paths =
  ${zope-2.8:location}/lib/python
scripts =
  invokepython=python${python2.4:python_version_major}
61
  ipython=ipython${python2.4:python_version_major}
62

63
[bootstrap2.4]
64 65
<= bootstrap
suffix = 2.4
66
python = python2.4