[buildout]
extends =
  file://%(SLAPOS)s/stack/slapos.cfg
  file://%(SLAPOS)s/component/chrpath/buildout.cfg
  file://%(SLAPOS)s/component/re6stnet/buildout.cfg

extends-cache = extends-cache
download-cache = download-cache

develop =
extensions = slapos.rebootstrap
newest = false

allow-picked-versions = true

parts += chrpath python-bootstrap

[babeld-repository]
git-executable =
location = ${buildout:directory}/babeld

[babeld]
post-install = make clean

[python-bootstrap]
recipe = zc.recipe.egg
interpreter = python.tmp
eggs = slapos.libnetworkcache
# https://lab.nexedi.com/nexedi/slapos.buildout/merge_requests/11
scripts = dummy

# Uguu, upstream buildout.cfg must be patched as it works the other way
# around from a packager point of view at least, thus at the end static
# path, such as Python HOME directory, are wrong...
#
# Currently:
# ./configure --prefix=BUILD_DIRECTORY && make install
# Instead of:
# ./configure --prefix=INSTALL_DIRECTORY && make install DESTDIR=BUILD_DIRECTORY
[python2.7]
configure-options +=
  --prefix=%(TARGET)s/parts/${:_buildout_section_name_}
environment +=
  DESTDIR=%(ROOT)s

[openssl]
prefix = %(TARGET)s/parts/${:_buildout_section_name_}
make-install-extra = DESTDIR=%(ROOT)s