diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-05-22 11:52:39 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-06-10 08:55:37 +0200 |
commit | d0f76510a950de65f3bb343ea6ca9412d8441a22 (patch) | |
tree | 327771ae6f7425a4928c711a68012c4839314f55 /lib/tevent | |
parent | 8dbdd27526c4d5358bc2614e90f9aca36f41ed1a (diff) | |
download | samba-d0f76510a950de65f3bb343ea6ca9412d8441a22.tar.gz |
pytevent: Build for two versions of Python at once
Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun 10 08:55:37 CEST 2015 on sn-devel-104
Diffstat (limited to 'lib/tevent')
-rwxr-xr-x | lib/tevent/wscript | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/tevent/wscript b/lib/tevent/wscript index d0f1ac18366..16a56c3885e 100755 --- a/lib/tevent/wscript +++ b/lib/tevent/wscript @@ -113,18 +113,21 @@ def build(bld): private_library=private_library) if not bld.CONFIG_SET('USING_SYSTEM_PYTEVENT') and not bld.env.disable_python: - bld.SAMBA_PYTHON('pytevent', - 'pytevent.c', - deps='tevent', - realname='_tevent.so', - cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION) + for env in bld.gen_python_environments(['PKGCONFIGDIR']): + bld.SAMBA_PYTHON('_tevent', + 'pytevent.c', + deps='tevent', + realname='_tevent.so', + cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION) + + + bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'tevent.py', flat=False) + # install out various python scripts for use by make test bld.SAMBA_SCRIPT('tevent_python', pattern='tevent.py', installdir='python') - bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'tevent.py', flat=False) - def test(ctx): '''test tevent''' |