python-2.4.cfg 2.41 KB
Newer Older
1
[buildout]
2
extends =
3 4 5 6 7 8 9 10
  bzip2.cfg
  gdbm.cfg
  gettext.cfg
  ncurses.cfg
  openssl.cfg
  readline.cfg
  sqlite3.cfg
  zlib.cfg
11

12
parts =
13
    pythonbin2.4
14

15 16
[python2.4-dbm-patch]
recipe = hexagonit.recipe.download
17 18
# 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
19
md5sum = 8611020af1463b42f253ac73a91b09a1
20
download-only = true
21
filename = python2.4-dbm.patch
22

23
[python2.4]
24 25 26 27 28 29 30 31
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}

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

43
environment =
44 45
  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
  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 -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 -L${gettext:location}/lib -Wl,-rpath -Wl,${gettext:location}/lib
46

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

59
[bootstrap2.4]
60 61 62 63 64 65
recipe = zc.recipe.egg
eggs = zc.buildout
suffix =
scripts =
    buildout=bootstrap2.4
arguments = sys.argv[1:] + ["bootstrap"]
66
suffix = 2.4
67
python = python2.4