1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/lib/socket_wrapper/wscript_build
Amitay Isaacs bd8aafc530 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>
2011-11-17 08:42:45 +01:00

20 lines
664 B
Python

#!/usr/bin/env python
bld.SAMBA_LIBRARY('socket_wrapper',
source='socket_wrapper.c',
group='base_libraries',
private_library=True,
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')