• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.0.25b/source/python/
1This directory contains Python bindings to allow you to access various
2aspects of Samba.  At the moment their status is "experimental" and
3they are not built by default.
4
5In order to be able to compile samba-python you need to have python
6and the python-dev packages installed.
7
8Python libraries are always built for a particular version of Python
9(2.2, 2.1, etc), and libraries built for one version will not be seen
10by another.  By default Samba's libraries are built for whatever is
11installed as "python" on your $PATH, but you can override this using
12the --with-python option.  For example
13
14  $ ./configure --with-python=python2.2
15
16To build:
17
18$ autoconf
19$ ./configure 
20$ make python_ext
21
22Now, you can install the modules:
23
24$ cp build/lib.*/*.so /usr/lib/python2.1/lib-dynload/
25
26(the directory /usr/lib/python2.1 may vary, depending on your installation)
27
28Samba-python should work now!
29