buildout.cfg 1.05 KB
Newer Older
1 2
[buildout]
# http://bluedynamics.com/articles/jens/build-python-in-buildout
3
# based on https://svn.plone.org/svn/collective/buildout/bda-naked-python/buildout2.4.cfg
4
python_version = 2.4
5 6 7 8 9 10
python_version_minor = 6
python_version_full = ${:python_version}.${:python_version_minor}
python = python
parts =
    python
    pythonbin
11 12

[python]
13 14 15
recipe = zc.recipe.cmmi
url =
  http://python.org/ftp/python/${buildout:python_version_full}/Python-${buildout:python_version_full}.tgz
Łukasz Nowak's avatar
Łukasz Nowak committed
16 17 18 19
extra_options =
  --enable-unicode=ucs4
  --with-threads
  --with-readline
20 21 22 23 24
  --prefix=${buildout:directory}/parts/python${buildout:python_version}
executable = ${buildout:directory}/parts/python${buildout:python_version}/bin/python${buildout:python_version}

[pythonbin]
recipe = plone.recipe.command
25
command = ln -sf ${python:executable} ${buildout:bin-directory}/python${buildout:python_version}
26 27 28 29 30 31 32 33 34 35 36 37 38 39

[requirements]
binary =
  g++
  gcc
  make

development =
  /usr/include/termcap.h
  /usr/include/curses.h
  /usr/include/zlib.h
  /usr/include/bzlib.h
  /usr/include/openssl/ssl.h
  /usr/include/jpeglib.h