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