From 0ffe030c0dcd46b51ffb2f11c03d5b48e93d32b9 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 8 Aug 2017 11:50:30 +0200 Subject: python: Make generated modules samba.ntstatus and samba.werror Python 3 compatible. Signed-off-by: Lumir Balhar Reviewed-by: Andreas Schneider Reviewed-by: Andrew Bartlet Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Aug 22 17:38:17 CEST 2017 on sn-devel-144 --- libcli/util/wscript_build | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'libcli') diff --git a/libcli/util/wscript_build b/libcli/util/wscript_build index f27014e3446..ce918993d15 100644 --- a/libcli/util/wscript_build +++ b/libcli/util/wscript_build @@ -26,14 +26,15 @@ bld.SAMBA_GENERATOR('werror_generated', rule='${PYTHON} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${TGT[0].abspath(env)} ${TGT[1].abspath(env)} ${TGT[2].abspath(env)}' ) -bld.SAMBA_PYTHON('python_ntstatus', - source='py_ntstatus.c', - deps='samba-errors', - realname='samba/ntstatus.so' - ) +for env in bld.gen_python_environments(): + bld.SAMBA_PYTHON('python_ntstatus', + source='py_ntstatus.c', + deps='samba-errors', + realname='samba/ntstatus.so' + ) -bld.SAMBA_PYTHON('python_werror', - source='py_werror.c', - deps='samba-errors', - realname='samba/werror.so' - ) + bld.SAMBA_PYTHON('python_werror', + source='py_werror.c', + deps='samba-errors', + realname='samba/werror.so' + ) -- cgit v1.2.1