|
Last change
on this file since 367 was 1, checked in by Paul Smedley, 19 years ago |
|
Initial code import
|
|
File size:
889 bytes
|
| Line | |
|---|
| 1 | This directory contains Python bindings to allow you to access various
|
|---|
| 2 | aspects of Samba. At the moment their status is "experimental" and
|
|---|
| 3 | they are not built by default.
|
|---|
| 4 |
|
|---|
| 5 | In order to be able to compile samba-python you need to have python
|
|---|
| 6 | and the python-dev packages installed.
|
|---|
| 7 |
|
|---|
| 8 | Python 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
|
|---|
| 10 | by another. By default Samba's libraries are built for whatever is
|
|---|
| 11 | installed as "python" on your $PATH, but you can override this using
|
|---|
| 12 | the --with-python option. For example
|
|---|
| 13 |
|
|---|
| 14 | $ ./configure --with-python=python2.2
|
|---|
| 15 |
|
|---|
| 16 | To build:
|
|---|
| 17 |
|
|---|
| 18 | $ autoconf
|
|---|
| 19 | $ ./configure
|
|---|
| 20 | $ make python_ext
|
|---|
| 21 |
|
|---|
| 22 | Now, 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 |
|
|---|
| 28 | Samba-python should work now!
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.