Install dcerpc/__init__.py for all Python environments
authorAlexander Bokovoy <ab@samba.org>
Wed, 13 Sep 2017 08:37:34 +0000 (11:37 +0300)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Sep 2017 20:29:39 +0000 (22:29 +0200)
Also fix whitespace. We use tabs, not spaces in Python/waf code.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13030

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Sep 14 22:29:39 CEST 2017 on sn-devel-144

source4/librpc/wscript_build

index e341432fa141dcccab64404e0bd04047b0ff4eee..a381a65e3fa1c0faad7ce8a28abfac866964adbd 100644 (file)
@@ -407,9 +407,10 @@ for env in bld.gen_python_environments():
                )
 
 if bld.PYTHON_BUILD_IS_ENABLED():
-    bld.SAMBA_SCRIPT('python_dcerpc_init',
-                 pattern='rpc/dcerpc.py',
-                 installdir='python/samba/dcerpc',
-                 installname='__init__.py')
+       for env in bld.gen_python_environments():
+               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')