diff options
author | Lumir Balhar <lbalhar@redhat.com> | 2017-08-08 11:50:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-08-22 17:38:17 +0200 |
commit | 0ffe030c0dcd46b51ffb2f11c03d5b48e93d32b9 (patch) | |
tree | b1ea188cdc7f0ca8260f9cdea2547db7eb153fee /libcli | |
parent | 051a3ff6eb7dad08202b13aadbc6829370cc3f4b (diff) | |
download | samba-0ffe030c0dcd46b51ffb2f11c03d5b48e93d32b9.tar.gz |
python: Make generated modules samba.ntstatus and samba.werror Python 3 compatible.
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Aug 22 17:38:17 CEST 2017 on sn-devel-144
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/util/wscript_build | 21 |
1 files changed, 11 insertions, 10 deletions
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' + ) |