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

parts =
  pulp

# XXX patched pulp version that does not specify pyparsing version number
# because it conflicts with slapos version
[pulp-repository.git]
recipe = slapos.recipe.build:gitclone
repository = https://gitlab.com/jerome-nexedi/pulp-or.git
branch = master
git-executable = ${git:location}/bin/git

[pulp-env]
<= numpy-env
PATH=${glpk:location}/bin

[pulp]
recipe = zc.recipe.egg:develop
setup = ${pulp-repository.git:location}
egg = pulp
environment = pulp-env
setup-eggs = ${numpy:egg}
initialization =
  # pulp needs glpk in $PATH
  import os
  os.environ['PATH'] = '${glpk:location}/bin' + os.pathsep + os.environ.get('PATH', '')
