waf: disable-python - don't build pyrpc_util, dcerpc.py
authorIan Stakenvicius <axs@gentoo.org>
Fri, 27 Jan 2017 22:04:18 +0000 (17:04 -0500)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:13 +0000 (07:31 +0100)
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/librpc/wscript_build

index 07625cd62c7241a59f4c77c171a70a91af99db1d..5d01cca5e70e0ffb34ca1fb092585eab2ea6e149 100644 (file)
@@ -183,6 +183,7 @@ for env in bld.gen_python_environments():
                source='rpc/pyrpc_util.c',
                public_deps='%s %s dcerpc MESSAGING' % (pytalloc_util, pyparam_util),
                pyext=True,
+               enabled=bld.PYTHON_BUILD_IS_ENABLED(),
                )
 
        bld.SAMBA_PYTHON('python_dcerpc',
@@ -393,9 +394,10 @@ bld.SAMBA_PYTHON('python_dcerpc_smb_acl',
        realname='samba/dcerpc/smb_acl.so'
        )
 
-bld.SAMBA_SCRIPT('python_dcerpc_init',
+if bld.PYTHON_BUILD_IS_ENABLED():
+    bld.SAMBA_SCRIPT('python_dcerpc_init',
                  pattern='rpc/dcerpc.py',
                  installdir='python/samba/dcerpc',
                  installname='__init__.py')
 
-bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')
+    bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')