From c6f9d2703131d6705cf86de658a92b4f8c5b5687 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Tue, 9 Feb 2010 15:30:35 +0000
Subject: [PATCH]  - draft way to print out requirements to install

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32369 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/README.txt      | 8 ++++++++
 buildout/development.cfg | 2 --
 buildout/official.cfg    | 9 +++++++++
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/buildout/README.txt b/buildout/README.txt
index 8541bd23fa..f0b5ca8bfd 100644
--- a/buildout/README.txt
+++ b/buildout/README.txt
@@ -18,3 +18,11 @@ Zope, etc.
 
 Choosing and modifying proper profile allows to control how much software will
 be build in place.
+
+System dependency check
+-----------------------
+
+As each software component this buildout requires something to be installed.
+To query what is required please use:
+
+bin/buildout install show-requirements
diff --git a/buildout/development.cfg b/buildout/development.cfg
index b9b6d814f8..7263e8cd85 100644
--- a/buildout/development.cfg
+++ b/buildout/development.cfg
@@ -36,9 +36,7 @@ bt5 =
 
 [requirements]
 binary +=
-  # pysvn dependency
   svn
   svnadmin
 development +=
-  # pysvn dependency
   /usr/include.*/svn_client.h
diff --git a/buildout/official.cfg b/buildout/official.cfg
index 71e3a568a8..85caf6d4c2 100644
--- a/buildout/official.cfg
+++ b/buildout/official.cfg
@@ -41,6 +41,15 @@ parts =
 #  erp5-bt5
 #  erp5-products
 
+[show-requirements]
+# XXX: probably better way to merge results from all parts is needed
+# XXX: convert into proper recipe if possible
+recipe = plone.recipe.command
+command =
+  echo "Required binary files: ${requirements:binary}"
+  echo "Required header files: ${requirements:development}"
+update-command = ${:command}
+
 [software_definition]
 mysql_software = ${mysql-tritonn-5.0:location}
 zope_software = ${zope-2.8:location}
-- 
2.30.9