diff options
author | Lumir Balhar <lbalhar@redhat.com> | 2016-12-10 15:01:17 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-10 07:31:11 +0100 |
commit | fe8bba5f8174b81eb4fe660f3250b9222498f9b7 (patch) | |
tree | 93c3043dc427ed53d9612bad7fee4bf79e86a33a /source4/param | |
parent | 6fa125e121c1216d89d8bafd7da894d49c1d6527 (diff) | |
download | samba-fe8bba5f8174b81eb4fe660f3250b9222498f9b7.tar.gz |
python: wscript_build: Build some modules for Python 3
Update a few wscript_build files to build Python 3-compatible modules
for Python 3.
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/wscript_build | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/source4/param/wscript_build b/source4/param/wscript_build index 2ad753b7a33..b7a551f53b4 100644 --- a/source4/param/wscript_build +++ b/source4/param/wscript_build @@ -35,24 +35,27 @@ bld.SAMBA_SUBSYSTEM('SECRETS', deps='ldb tdb-wrap util_tdb NDR_SECURITY tevent ldbwrap' ) - -bld.SAMBA_PYTHON('pyparam', - source='pyparam.c', - deps='samba-hostconfig pytalloc-util', - realname='samba/param.so' - ) +for env in bld.gen_python_environments(): + pytalloc_util = bld.pyembed_libname('pytalloc-util') + pyparam_util = bld.pyembed_libname('pyparam_util') + + bld.SAMBA_PYTHON('pyparam', + source='pyparam.c', + deps='samba-hostconfig %s' % pytalloc_util, + realname='samba/param.so' + ) + + bld.SAMBA_SUBSYSTEM(pyparam_util, + source='pyparam_util.c', + deps='LIBPYTHON samba-hostconfig %s' % pytalloc_util, + pyext=True + ) bld.SAMBA_SUBSYSTEM('param_options', source='loadparm.c', deps='samba-hostconfig') -bld.SAMBA_SUBSYSTEM('pyparam_util', - source='pyparam_util.c', - deps='LIBPYTHON samba-hostconfig pytalloc-util', - pyext=True, - ) - bld.SAMBA_LIBRARY('shares', source=[], deps='share', |