[buildout]
extends =
  ../software-profiles/bzip2.cfg
  ../software-profiles/gdbm.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
  ../profiles/bootstrap.cfg

parts =
    python2.7

[python2.7]
# 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.7
executable = ${:prefix}/bin/python${:version}

recipe = erp5.recipe.cmmisafe
python_version_full = ${:python_version_major}
url =
  http://python.org/ftp/python/2.7/Python-2.7.tgz
md5sum = 35f56b092ecf39a6bd59d64f142aae0f
configure-options =
  --enable-unicode=ucs4
  --with-threads

python_version_major = 2.7

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
  LDFLAGS=-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

[bootstrap2.7]
<= bootstrap
suffix = 2.7
python = python2.7

[rebootstrap2.7]
recipe = zc.recipe.egg
eggs = zc.buildout
python = python2.7