mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Update documentation for newly merged modules
(This used to be commit a0e58fd2ce
)
This commit is contained in:
parent
f099013fcb
commit
3245349610
@ -2,44 +2,18 @@ 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.
|
||||
|
||||
In order to be able to compile samba-python you need to have python
|
||||
and the python-dev packages installed.
|
||||
|
||||
----
|
||||
Quick Install Guide
|
||||
--
|
||||
Lines prepended with a $ indicate shell commands.
|
||||
Python libraries are always built for a particular version of Python
|
||||
(2.2, 2.1, etc), and libraries built for one version will not be seen
|
||||
by another. By default Samba's libraries are built for whatever is
|
||||
installed as "python" on your $PATH, but you can override this using
|
||||
the --with-python option. For example
|
||||
|
||||
1. Requirements
|
||||
$ ./configure --with-python=python2.2
|
||||
|
||||
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:
|
||||
To build:
|
||||
|
||||
$ autoconf
|
||||
$ ./configure
|
||||
|
Loading…
Reference in New Issue
Block a user