[SCM] Samba Shared Repository - branch master updated

Jelmer Vernooij jelmer at samba.org
Wed Dec 7 07:08:05 MST 2011


The branch, master has been updated
       via  fbfd155 Add version attribute for pytevent.
      from  3adc4f5 selftest: samba4.samba-tool.domopen now passes, so do not skip

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit fbfd155a324d7dcdeebde28aad45fcf09465e968
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Wed Dec 7 11:57:57 2011 +0100

    Add version attribute for pytevent.
    
    Autobuild-User: Jelmer Vernooij <jelmer at samba.org>
    Autobuild-Date: Wed Dec  7 15:07:49 CET 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 lib/tevent/pytevent.c |    2 ++
 lib/tevent/tevent.py  |    1 +
 lib/tevent/wscript    |    3 ++-
 3 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c
index bf34871..bb702a1 100644
--- a/lib/tevent/pytevent.c
+++ b/lib/tevent/pytevent.c
@@ -761,4 +761,6 @@ void init_tevent(void)
 
 	Py_INCREF(&TeventFd_Type);
 	PyModule_AddObject(m, "Fd", (PyObject *)&TeventFd_Type);
+
+	PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
 }
diff --git a/lib/tevent/tevent.py b/lib/tevent/tevent.py
index 758ed48..c296544 100644
--- a/lib/tevent/tevent.py
+++ b/lib/tevent/tevent.py
@@ -22,6 +22,7 @@
 #   License along with this library; if not, see <http://www.gnu.org/licenses/>.
 
 from _tevent import (
+    __version__,
     backend_list,
     Context,
     Signal,
diff --git a/lib/tevent/wscript b/lib/tevent/wscript
index d240630..f98253f 100644
--- a/lib/tevent/wscript
+++ b/lib/tevent/wscript
@@ -96,7 +96,8 @@ def build(bld):
         bld.SAMBA_PYTHON('pytevent',
                          'pytevent.c',
                          deps='tevent',
-                         realname='_tevent.so')
+                         realname='_tevent.so',
+                         cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
         # install out various python scripts for use by make test
         bld.SAMBA_SCRIPT('tevent_python',
                          pattern='tevent.py',


-- 
Samba Shared Repository


More information about the samba-cvs mailing list