s4-waf Don't install any Samba packages into PYTHONDIR
authorAndrew Bartlett <abartlet@samba.org>
Tue, 1 Feb 2011 05:36:10 +0000 (16:36 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Feb 2011 04:21:13 +0000 (15:21 +1100)
This causes the parts of Samba installed into PYTHONARCHDIR to then be
missed in mixed python/C module namespaces.

Andrew Bartlett

lib/wscript_build
source4/librpc/wscript_build
source4/scripting/python/wscript_build

index bc9d5ed5f1a646d938b79e0bf075ec25148f9a50..9ce832a2fd1f9a88c66c14ee9b6279d7506df378 100644 (file)
@@ -17,14 +17,14 @@ for module, package in external_libs.items():
         list.append(package)
 
 for e in list:
-    bld.INSTALL_WILDCARD('${PYTHONDIR}/samba/external', e + '/**/*', flat=False,
+    bld.INSTALL_WILDCARD('${PYTHONARCHDIR}/samba/external', e + '/**/*', flat=False,
                          exclude='*.pyc', trim_path=os.path.dirname(e))
 
 bld.SAMBA_GENERATOR('external_init_py',
                     rule='touch ${TGT}',
                     target='empty_file')
 
-bld.INSTALL_FILES('${PYTHONDIR}/samba/external', 'empty_file', destname='__init__.py')
+bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/external', 'empty_file', destname='__init__.py')
 
 # a grouping library for event and socket related subsystems
 bld.SAMBA_LIBRARY('samba-sockets',
index 4e2b6728cd81cd3dea3d00bb73b4c4764422198c..d0159bb37a7f59a1a0f25172324d29d79e560803 100755 (executable)
@@ -360,4 +360,4 @@ bld.SAMBA_SCRIPT('python_dcerpc_init',
                  installdir='python/samba/dcerpc',
                  installname='__init__.py')
 
-bld.INSTALL_FILES('${PYTHONDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')
+bld.INSTALL_FILES('${PYTHONARCHDIR}/samba/dcerpc', 'rpc/dcerpc.py', destname='__init__.py')
index 227c63345d724efe6cb937ce1746ab2e1bddb54e..540f3b7bb7e7f4282f8879233beb241c67fb1d94 100644 (file)
@@ -36,4 +36,4 @@ bld.SAMBA_SCRIPT('samba_python',
                  pattern='samba/**/*.py',
                  installdir='python')
 
-bld.INSTALL_WILDCARD('${PYTHONDIR}', 'samba/**/*.py', flat=False)
+bld.INSTALL_WILDCARD('${PYTHONARCHDIR}', 'samba/**/*.py', flat=False)