summaryrefslogtreecommitdiff
path: root/lib/socket_wrapper/wscript_build
diff options
context:
space:
mode:
authorAmitay Isaacs <amitay@gmail.com>2011-10-14 17:24:16 +1100
committerKai Blin <kai@samba.org>2011-11-17 08:42:45 +0100
commitbd8aafc530ba473acefd53665b73a47d1ebbb3a5 (patch)
tree3472039c38fcf4fc54dba0e3ab1612d0dace923e /lib/socket_wrapper/wscript_build
parentf7c8af759909e472a5f9dcaa7f738c7151a57afc (diff)
downloadsamba-bd8aafc530ba473acefd53665b73a47d1ebbb3a5.tar.gz
samba-bd8aafc530ba473acefd53665b73a47d1ebbb3a5.tar.bz2
samba-bd8aafc530ba473acefd53665b73a47d1ebbb3a5.zip
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 <kai@samba.org>
Diffstat (limited to 'lib/socket_wrapper/wscript_build')
-rw-r--r--lib/socket_wrapper/wscript_build10
1 files changed, 10 insertions, 0 deletions
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')