Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec 7 15:07:49 CET 2011 on sn-devel-104
Py_INCREF(&TeventFd_Type);
PyModule_AddObject(m, "Fd", (PyObject *)&TeventFd_Type);
+
+ PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
}
# License along with this library; if not, see <http://www.gnu.org/licenses/>.
from _tevent import (
+ __version__,
backend_list,
Context,
Signal,
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',