s4:objectclass LDB module - fix a comment
[nivanova/samba-autobuild/.git] / lib / wscript_build
index c47dfc01a8c54bf9ea20b56e5845426df6bcb05b..9ce832a2fd1f9a88c66c14ee9b6279d7506df378 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-import os
+import os, Options
 
 # work out what python external libraries we need to install
 external_libs = {
@@ -10,12 +10,25 @@ external_libs = {
 
 list = []
 
-for module, package in external_libs.iteritems():
+for module, package in external_libs.items():
     try:
         __import__(module)
     except ImportError:
         list.append(package)
 
 for e in list:
-    bld.INSTALL_WILDCARD('${PYTHONDIR}', 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('${PYTHONARCHDIR}/samba/external', 'empty_file', destname='__init__.py')
+
+# a grouping library for event and socket related subsystems
+bld.SAMBA_LIBRARY('samba-sockets',
+                  source=[],
+                  private_library=True,
+                  grouping_library=True,
+                  deps='LIBTSOCKET samba_socket UTIL_TEVENT')