socket_wrapper: Added python interface to socket_wrapper
[ira/wip.git] / lib / socket_wrapper / wscript_build
index a81c7aa61a9c770b24f197402a42fd64dd00e3a0..c4b94147d619b15be6f2c9a7fffcf833e1e8c68f 100644 (file)
@@ -7,3 +7,13 @@ bld.SAMBA_LIBRARY('socket_wrapper',
                   enabled=bld.CONFIG_SET('SOCKET_WRAPPER'),
                   deps='replace')
 
+bld.SAMBA_PYTHON('py_socket_wrapper',
+                source='py_socket_wrapper.c',
+                deps='socket_wrapper',
+                public_deps='talloc pytalloc-util',
+                realname='samba/socket_wrapper.so')
+
+bld.SAMBA_SCRIPT('python_socket',
+                pattern='socket.py',
+                installdir='python',
+                installname='samba/socket.py')