From bd8aafc530ba473acefd53665b73a47d1ebbb3a5 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 14 Oct 2011 17:24:16 +1100 Subject: socket_wrapper: Added python interface to socket_wrapper The socket_wrapper does not support setting blocking flag or timeouts on the sockets. To use socket module in python, use from samba import socket Signed-off-by: Kai Blin --- lib/socket_wrapper/wscript_build | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/socket_wrapper/wscript_build') diff --git a/lib/socket_wrapper/wscript_build b/lib/socket_wrapper/wscript_build index a81c7aa61a..c4b94147d6 100644 --- a/lib/socket_wrapper/wscript_build +++ b/lib/socket_wrapper/wscript_build @@ -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') -- cgit