diff --git a/component/pulp/buildout.cfg b/component/pulp/buildout.cfg new file mode 100644 index 0000000000000000000000000000000000000000..4160fa6f132d03dd17a2c8dc850f13e080f5b203 --- /dev/null +++ b/component/pulp/buildout.cfg @@ -0,0 +1,35 @@ +[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 +develop = true + +[pulp-build] +recipe = zc.recipe.egg:develop +setup = ${pulp-repository.git:location} + +[pulp-env] +<= numpy-env +PATH=${glpk:location}/bin + +[pulp] +dependencies = ${pulp-build:setup} +recipe = zc.recipe.egg:custom +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', '')