From 5740da0dd2949f61116d7208d16faf0ce7c185f8 Mon Sep 17 00:00:00 2001
From: Kirill Smelkov <kirr@nexedi.com>
Date: Mon, 1 Jun 2015 12:48:48 +0300
Subject: [PATCH] wendelin.core: It needs git at runtime for wendelin.core-dev

Because git is used in `python setup.py sdist`

    https://lab.nexedi.cn/nexedi/wendelin.core/blob/11d130d1/setup.py#L168

we need to make sure it is available at runtime (at time when sdist
happens), or else installation could fail.

Since zc.recipe.egg:develop now supports setting environment variables

    https://lab.nexedi.cn/nexedi/slapos.buildout/commit/93d35f5d
    https://lab.nexedi.cn/nexedi/slapos.buildout/commit/71078537 )

and we use the proper version of it in slapos stack:

    https://lab.nexedi.cn/nexedi/slapos/commit/d0807d90

we can just set environment with git being in PATH and fix it this way.

/cc @Tyagov, @kazuhiko, @jerome
/reviewed testbot(building ok), trustme
---
 component/wendelin.core/buildout.cfg | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/component/wendelin.core/buildout.cfg b/component/wendelin.core/buildout.cfg
index 6f7160339..906963375 100644
--- a/component/wendelin.core/buildout.cfg
+++ b/component/wendelin.core/buildout.cfg
@@ -15,6 +15,11 @@ egg = wendelin.core
 recipe = zc.recipe.egg:develop
 egg = wendelin.core
 setup = ${wendelin.core-repository-submoduleinit:location}
+environment = wendelin.core-dev-env
+
+[wendelin.core-dev-env]
+# wendelin.core-dev needs git to build
+PATH = ${git:location}/bin:%(PATH)s
 
 
 [wendelin.core-repository]
-- 
2.30.9