From f5cb884b459f46467f76dc4d0f155e4470ac5f20 Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Wed, 10 Feb 2010 09:14:18 +0000
Subject: [PATCH] mysql-python needs custom treatment when built with a
 specific mysql

in particular, PATH has to be changed so the configurator can find
mysql_config


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32398 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/erp5-software/buildout.cfg | 9 +++++++++
 buildout/official.cfg               | 1 +
 buildout/zope-instance/buildout.cfg | 1 -
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/buildout/erp5-software/buildout.cfg b/buildout/erp5-software/buildout.cfg
index 1e22f3d232..7766aef20a 100644
--- a/buildout/erp5-software/buildout.cfg
+++ b/buildout/erp5-software/buildout.cfg
@@ -2,6 +2,7 @@
 parts =
   cmf15
   itools
+  mysql-python
   products-other
   products-deps
   products-erp5
@@ -56,6 +57,14 @@ recipe = zc.recipe.egg:custom
 egg = itools
 include-dirs = /usr/include/glib-2.0:/usr/lib/glib-2.0/include/:/usr/lib64/glib-2.0/include/
 
+[mysql-python-env]
+PATH =${software_definition:mysql_software}/bin:%(PATH)s
+
+[mysql-python]
+recipe = zc.recipe.egg:custom
+egg = MySQL-python
+environment = mysql-python-env
+
 [products-deps]
 recipe = plone.recipe.distros
 urls =
diff --git a/buildout/official.cfg b/buildout/official.cfg
index 85caf6d4c2..a9d7e24ef3 100644
--- a/buildout/official.cfg
+++ b/buildout/official.cfg
@@ -32,6 +32,7 @@ parts =
   zope-2.8
   cmf15
   itools
+  mysql-python
   products-other
   products-deps
   products-erp5
diff --git a/buildout/zope-instance/buildout.cfg b/buildout/zope-instance/buildout.cfg
index 4fc9d5a39e..8eb9db96b9 100644
--- a/buildout/zope-instance/buildout.cfg
+++ b/buildout/zope-instance/buildout.cfg
@@ -15,7 +15,6 @@ zope-conf-additional=
   </timer-server>
 
 eggs =
-    MySQL-python
     python-memcached
     PyXML
     ply
-- 
2.30.9