[buildout]
extends =
  ../numpy/buildout.cfg
  ../matplotlib/buildout.cfg

parts =
  ipython

[ipython-env]
<= numpy-env

[ipython]
recipe = zc.recipe.egg:custom
egg = ipython
environment = ipython-env
setup-eggs = ${numpy:egg}

[ipython_notebook]
recipe = zc.recipe.egg:scripts
eggs = ipython[notebook]
  ${matplotlib:egg}
environment = ipython-env
setup-eggs = ${numpy:egg}
initialization =
  # https://github.com/ipython/ipython/issues/5420
  import os
  os.environ['PYTHONPATH'] = ':'.join(sys.path)