blob: 6d42897bad1b3698f037ec5da57c3754bf380f63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
This directory contains Python bindings to allow you to access various
aspects of Samba. At the moment their status is "experimental" and
they are not built by default.
----
Quick Install Guide
--
Lines prepended with a $ indicate shell commands.
1. Requirements
In order to be able to compile samba-python you need to have
python and the python-dev packages installed.
2. Checking out the CVS HEAD branch of Samba and Samba-Python
In your shell, type:
$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot login
When asked for a password, type 'cvs'.
Now, type:
$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co samba
This might probably take a while. When everything is downloaded,
check out the samba-python tree:
$ cvs -d :pserver:cvs@pserver.samba.org:/cvsroot co samba-python
Now that you have both cvs modules, move the directory 'samba-python' to
inside the samba source tree, using:
$ mv samba-python samba/source/python
Now, go to the samba/source directory and apply the samba-head.patch patch:
$ cd samba/source && patch -p0 < location/to/samba-python/samba-head.patch
You can now configure samba as usual and create the python extension:
$ autoconf
$ ./configure
$ make python_ext
Now, you can install the modules:
$ cp build/lib.*/*.so /usr/lib/python2.1/lib-dynload/
(the directory /usr/lib/python2.1 may vary, depending on your installation)
Samba-python should work now!
|