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:
parent
3adc4f5545
commit
fbfd155a32
@ -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));
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user