buildout.cfg 1.16 KB
Newer Older
Ivan Tyagov's avatar
Ivan Tyagov committed
1
[buildout]
2
extends = ../git/buildout.cfg
Ivan Tyagov's avatar
Ivan Tyagov committed
3
parts =
4
  wendelin.core
Ivan Tyagov's avatar
Ivan Tyagov committed
5

6 7

# wendelin.core installed from released egg from pypi
8
[wendelin.core]
Ivan Tyagov's avatar
Ivan Tyagov committed
9 10
recipe = zc.recipe.egg:custom
egg = wendelin.core
11 12 13 14 15


# wendelin.core installed from latest git version
[wendelin.core-dev]
recipe = zc.recipe.egg:develop
16
egg = wendelin.core
17
setup = ${wendelin.core-repository-submoduleinit:location}
18 19 20 21 22
environment = wendelin.core-dev-env

[wendelin.core-dev-env]
# wendelin.core-dev needs git to build
PATH = ${git:location}/bin:%(PATH)s
23 24 25 26 27 28 29


[wendelin.core-repository]
recipe  = slapos.recipe.build:gitclone
repository = https://lab.nexedi.cn/nexedi/wendelin.core.git
# dir is pretty name as top-level -dev recipe
location = ${buildout:parts-directory}/wendelin.core-dev
30
git-executable = ${git:location}/bin/git
31 32 33 34 35 36


# TODO add `git clone --recursive` to slapos.recipe.build:gitclone
#      and this way merge this -submoduleinit into -repository part
[wendelin.core-repository-submoduleinit]
recipe = plone.recipe.command
37
command = cd "${wendelin.core-repository:location}" && ${git:location}/bin/git submodule update --init
38 39 40
stop-on-error = true
# propagate location of main repo
location= ${wendelin.core-repository:location}