buildout.cfg 1.38 KB
Newer Older
1 2
# SlapOS component for wendelin.core

Ivan Tyagov's avatar
Ivan Tyagov committed
3
[buildout]
4 5
extends =
  ../pygolang/buildout.cfg
6
  ../ZODB/buildout.cfg
7
  ../zodbtools/buildout.cfg
8
  ../numpy/buildout.cfg
9 10
  ../golang/buildout.cfg
  ../zlib/buildout.cfg
11 12
  ../git/buildout.cfg

Ivan Tyagov's avatar
Ivan Tyagov committed
13
parts =
14
  wendelin.core
Ivan Tyagov's avatar
Ivan Tyagov committed
15

16

17
# wendelin.core is installed from git checkout
18
[wendelin.core]
19
recipe = zc.recipe.egg:develop
Ivan Tyagov's avatar
Ivan Tyagov committed
20
setup = ${wendelin.core-repository:location}
21 22 23 24
egg = wendelin.core
setup-eggs =
    ${pygolang:egg}[pyx.build]
environment = wendelin.core-env
25

26 27
# dependent eggs that must come through in-tree recipes
depends =
28
    ${ZODB:egg}
29
    ${zodbtools:egg}
30 31 32
    ${numpy:egg}


33
[wendelin.core-env]
34
# wendelin.core needs git(dev) and go to build
35
PATH = ${git:location}/bin:%(PATH)s
36 37 38 39 40
GO   = ${go:exe}

# wcfs needs this:
[gowork]
cpkgpath += ${zlib:location}/lib/pkgconfig
41 42 43 44 45 46
[wendelin.core-env]
# `pkg-config --libs zlib` emits only -L, but not -Wl,-rpath
# better set it via gowork:environment when "VAR += ..." support is there
# environment +=
#   CGO_LDFLAGS += -Wl,-rpath=${zlib:location}/lib
CGO_LDFLAGS += -Wl,-rpath=${zlib:location}/lib
47 48 49 50


[wendelin.core-repository]
recipe  = slapos.recipe.build:gitclone
51
repository = https://lab.nexedi.com/nexedi/wendelin.core.git
52
branch   = master
53
revision = wendelin.core-2.0.alpha1-20-g11e023cf
54 55
# dir is pretty name as top-level recipe
location = ${buildout:parts-directory}/wendelin.core
56
git-executable = ${git:location}/bin/git