[pkg-kolab] kdepim and kolab

Diane Trout diane at ghic.org
Sun Jun 29 00:48:50 UTC 2014


> Well yes i see the same issue here - actually upstream doesn't create this
> file. But you can easily create one (it is just an empty file, so touch
> should be your friend :) And you can use pykolab by using the direct import
> kolab.foo. The debian package should  ship an __init__.py.

Hello,

What do you think of the following patch to be incorporated upstream?

I wasn't sure if the __init__ file should live next to shared, calendaring, or 
kolabformat. 

Diane


Author: Diane Trout
Description: Add __init__ file to make kolab a valid python package
 The comment in __init__.py is just so quilt makes the file,
 it could be an empty file if included in git.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -205,6 +205,11 @@
 if(PYTHON_BINDINGS)
     generatePythonBindings(shared shared.i)
     add_subdirectory(kolabformat/python)
+    install( FILES
+        __init__.py
+        DESTINATION ${PYTHON_INSTALL_DIR}/kolab
+    )
+
 endif(PYTHON_BINDINGS)
 
 if(PHP_BINDINGS)
--- /dev/null
+++ b/__init__.py
@@ -0,0 +1,2 @@
+# Needed to make python package
+



More information about the pkg-kolab-devel mailing list