From f9897b6d5beb3f8424f5e759679278d584fbef41 Mon Sep 17 00:00:00 2001
From: Michael Hanselmann <hansmi@google.com>
Date: Thu, 10 Sep 2009 17:41:41 +0200
Subject: [PATCH] Add new ganeti.build namespace

This will be used to store build-time Python code.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
---
 Makefile.am           |  7 ++++++-
 lib/build/__init__.py | 19 +++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)
 create mode 100644 lib/build/__init__.py

diff --git a/Makefile.am b/Makefile.am
index abdff9aa8..0bd248a61 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,6 +30,7 @@ DIRS = \
 	doc/examples \
 	doc/examples/hooks \
 	lib \
+	lib/build \
 	lib/http \
 	lib/hypervisor \
 	lib/rapi \
@@ -57,6 +58,7 @@ CLEANFILES = \
 	doc/examples/ganeti.cron \
 	doc/examples/hooks/ipsec \
 	lib/*.py[co] \
+	lib/build/*.py[co] \
 	lib/http/*.py[co] \
 	lib/hypervisor/*.py[co] \
 	lib/rapi/*.py[co] \
@@ -75,6 +77,9 @@ BUILT_SOURCES = \
 nodist_pkgpython_PYTHON = \
 	lib/_autoconf.py
 
+noinst_PYTHON = \
+	lib/build/__init__.py
+
 pkgpython_PYTHON = \
 	lib/__init__.py \
 	lib/asyncnotifier.py \
@@ -379,7 +384,7 @@ srclinks: stamp-directories
 	for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) \
 			$(rapi_PYTHON) $(http_PYTHON) $(confd_PYTHON) \
 			$(dist_sbin_SCRIPTS) $(dist_tools_SCRIPTS) \
-			$(dist_TESTS); do \
+			$(dist_TESTS) $(noinst_PYTHON); do \
 		if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \
 			$(LN_S) $(abs_top_srcdir)/$$i $$i; \
 		fi; \
diff --git a/lib/build/__init__.py b/lib/build/__init__.py
new file mode 100644
index 000000000..007afb285
--- /dev/null
+++ b/lib/build/__init__.py
@@ -0,0 +1,19 @@
+#
+#
+
+# Copyright (C) 2009 Google Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
-- 
GitLab