From 16b454f6c768cea3132d54bb75348ea8c60b5d35 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 21 Aug 2002 23:28:41 +0000 Subject: Added README written by Jelmer - thanks! (This used to be commit f639eb3817b9edf421dc103394428d607857a0bb) --- source3/python/README | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 source3/python/README (limited to 'source3/python/README') diff --git a/source3/python/README b/source3/python/README new file mode 100644 index 0000000000..f751046376 --- /dev/null +++ b/source3/python/README @@ -0,0 +1,48 @@ +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! -- cgit From 0b819e864a62941f53f5a30dd4060f2935d64a03 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 9 Sep 2002 05:22:13 +0000 Subject: Add little meta note (This used to be commit c651720633e3affb192eef9e676fad37a0ad4fae) --- source3/python/README | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/python/README') diff --git a/source3/python/README b/source3/python/README index f751046376..6d42897bad 100644 --- a/source3/python/README +++ b/source3/python/README @@ -1,3 +1,9 @@ +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. -- cgit From 3245349610a999a2eb0b4e388ad16775d7b54e83 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 9 Sep 2002 06:26:41 +0000 Subject: Update documentation for newly merged modules (This used to be commit a0e58fd2cef5891e874a08f71d5d7a3f10ec6454) --- source3/python/README | 44 +++++++++----------------------------------- 1 file changed, 9 insertions(+), 35 deletions(-) (limited to 'source3/python/README') diff --git a/source3/python/README b/source3/python/README index 6d42897bad..04f794215a 100644 --- a/source3/python/README +++ b/source3/python/README @@ -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 -- cgit