[buildout]
extends =
  ../gcc/buildout.cfg
  ../numpy/openblas.cfg
  ../cython/buildout.cfg
  ../scipy/buildout.cfg
  
parts =
  PyWavelets

[PyWavelets-env]
<= numpy-env

[PyWavelets]
recipe = zc.recipe.egg:custom
egg = PyWavelets
environment = PyWavelets-env
setup-eggs =
  ${numpy:egg}
  ${scipy:egg}
  ${cython:egg}
rpath =
  ${gcc:location}/lib
  ${gcc:location}/lib64
  ${openblas:location}/lib

[PyWavelets-repository]
recipe  = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
repository = https://github.com/PyWavelets/pywt.git
location = ${buildout:parts-directory}/PyWavelets

[PyWavelets-develop]
# This only work if we use zc.recipe.egg from zc.buildout 2 patched
# by nexedi (zc.recipe.egg = 2.0.3+slapos001 and zc.buildout = 2.5.2+slapos003)
recipe = zc.recipe.egg:develop
egg = PyWavelets
setup = ${PyWavelets-repository:location}
environment = PyWavelets-env
setup-eggs =
  ${cython:egg}
  ${numpy:egg}
  ${scipy:egg}
rpath =
  ${gcc:location}/lib
  ${gcc:location}/lib64
  ${openblas:location}/lib