python: wscript_build: Prepare build environment for Python 3 porting
[kamenim/samba-autobuild/.git] / python / wscript_build
index 01ac362d4750a5baf28bbb93407f4139e0fc8084..5ab0d7d07dc6bbf0789f55ca32efce5ff56319f7 100644 (file)
@@ -22,10 +22,10 @@ bld.SAMBA_PYTHON('python_glue',
        realname='samba/_glue.so'
        )
 
+for env in bld.gen_python_environments():
+       # install out various python scripts for use by make test
+       bld.SAMBA_SCRIPT('samba_python_files',
+                        pattern='samba/**/*.py',
+                        installdir='python')
 
-# install out various python scripts for use by make test
-bld.SAMBA_SCRIPT('samba_python_files',
-                 pattern='samba/**/*.py',
-                 installdir='python')
-
-bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'samba/**/*.py', flat=False)
+       bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'samba/**/*.py', flat=False)