From a09fd41dd44a686da7bde2bb9f7e2a92d7876ab3 Mon Sep 17 00:00:00 2001
From: Jan Rinze Peterzon <peterzon@astron.nl>
Date: Mon, 2 Feb 2015 17:15:43 +0000
Subject: [PATCH] Task #7342: Add Python lib in the CMakeList.txt and the
 __init__.py

---
 .gitattributes                    |  1 +
 LCS/MessageBus/src/CMakeLists.txt |  7 +++++++
 LCS/MessageBus/src/__init__.py    | 19 +++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 LCS/MessageBus/src/__init__.py

diff --git a/.gitattributes b/.gitattributes
index 8b18399fb19..d25f602a58e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -2426,6 +2426,7 @@ LCS/MSLofar/test/tBeamTables.in_hd/RS106-iHBADeltas.conf -text
 LCS/MessageBus/src/LofarMsgTemplate.txt -text
 LCS/MessageBus/src/Message.cc -text
 LCS/MessageBus/src/MsgBus.py -text
+LCS/MessageBus/src/__init__.py -text
 LCS/MessageBus/test/tMessage.cc -text
 LCS/MessageBus/test/tMsgBus.cc -text
 LCS/Stream/include/Stream/SocketStream.tcc -text
diff --git a/LCS/MessageBus/src/CMakeLists.txt b/LCS/MessageBus/src/CMakeLists.txt
index c5af1a84c88..2df0f3a5168 100644
--- a/LCS/MessageBus/src/CMakeLists.txt
+++ b/LCS/MessageBus/src/CMakeLists.txt
@@ -1,6 +1,8 @@
 # $Id$
 
 include(LofarPackageVersion)
+include(PythonInstall)
+
 
 set(messagebus_LIB_SRCS
   Package__Version.cc
@@ -15,3 +17,8 @@ lofar_add_library(messagebus ${messagebus_LIB_SRCS})
 foreach(prog ${messagebus_PROGRAMS})
   lofar_add_bin_program(${prog} ${prog}.cc)
 endforeach(prog ${messagebus_PROGRAMS})
+
+python_install(
+  __init__.py
+  MsgBus.py
+  DESTINATION MessageBus/)
\ No newline at end of file
diff --git a/LCS/MessageBus/src/__init__.py b/LCS/MessageBus/src/__init__.py
new file mode 100644
index 00000000000..f7b77e4847d
--- /dev/null
+++ b/LCS/MessageBus/src/__init__.py
@@ -0,0 +1,19 @@
+# Copyright (C) 2012-2013  ASTRON (Netherlands Institute for Radio Astronomy)
+# P.O. Box 2, 7990 AA Dwingeloo, The Netherlands
+#
+# This file is part of the LOFAR software suite.
+# The LOFAR software suite 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 3 of the License, or
+# (at your option) any later version.
+#
+# The LOFAR software suite 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 the LOFAR software suite. If not, see <http://www.gnu.org/licenses/>.
+#
+# $Id: __init__.py 29911 2014-08-12 14:45:14Z klijn $
+all
-- 
GitLab