diff options
author | Petr Viktorin <pviktori@redhat.com> | 2017-01-23 20:34:08 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-10 07:31:12 +0100 |
commit | 8ba2fe54dea3e99da7f9b18557d9d31aed3ff7d0 (patch) | |
tree | 0b754c5517b6ab7782a7677e9af71e2db6a311b3 /source4/libnet/wscript_build | |
parent | 0d83cec7c9cbf4ed84c5ee96eb460fbf1623418e (diff) | |
download | samba-8ba2fe54dea3e99da7f9b18557d9d31aed3ff7d0.tar.gz |
python: Port the samba.net module to Python 3
Signed-off-by: Petr Viktorin <pviktori@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/libnet/wscript_build')
-rw-r--r-- | source4/libnet/wscript_build | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source4/libnet/wscript_build b/source4/libnet/wscript_build index 1274a82d04c..db113b2f71e 100644 --- a/source4/libnet/wscript_build +++ b/source4/libnet/wscript_build @@ -8,11 +8,14 @@ bld.SAMBA_LIBRARY('samba-net', ) -bld.SAMBA_PYTHON('python_net', - source='py_net.c', - deps='samba-net pyrpc_util pytalloc-util', - realname='samba/net.so' - ) +for env in bld.gen_python_environments(): + pytalloc_util = bld.pyembed_libname('pytalloc-util') + pyrpc_util = bld.pyembed_libname('pyrpc_util') + bld.SAMBA_PYTHON('python_net', + source='py_net.c', + deps='samba-net %s %s' % (pyrpc_util, pytalloc_util), + realname='samba/net.so' + ) bld.SAMBA_PYTHON('python_dckeytab', source='py_net_dckeytab.c libnet_export_keytab.c', |