1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Add version attribute for pytevent.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Dec  7 15:07:49 CET 2011 on sn-devel-104
This commit is contained in:
Jelmer Vernooij 2011-12-07 11:57:57 +01:00
parent 3adc4f5545
commit fbfd155a32
3 changed files with 5 additions and 1 deletions

View File

@ -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));
}

View File

@ -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,

View File

@ -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',