diff --git a/xapian-bindings/python/Makefile.am b/xapian-bindings/python/Makefile.am
index 789c197..5895223 100644
a
|
b
|
_xapian_la_LIBADD = $(XAPIAN_LIBS) $(PYTHON_LIBS)
|
57 | 57 | # versions so we can't let the .pyc and .pyo files get written there. Hence we |
58 | 58 | # copy the .py file to the build directory from wherever it actually is and use |
59 | 59 | # the copy. We also rename the copy to __init__.py so that it can be installed |
60 | | # in a "xapian" directory and be treated as a package. |
| 60 | # in a "xapian" directory and be treated as a package. Finally, we take this |
| 61 | # opportunity to drop a module doc string at the top of the file. |
61 | 62 | xapian/__init__.py: modern/xapian.py |
62 | 63 | -test -d xapian || mkdir xapian |
63 | | cp `test -f modern/xapian.py || echo '$(srcdir)/'`modern/xapian.py xapian/__init__.py |
| 64 | cp $(srcdir)/module_top.py xapian/__init__.py |
| 65 | cat `test -f modern/xapian.py || echo '$(srcdir)/'`modern/xapian.py >> xapian/__init__.py |
64 | 66 | |
65 | 67 | # We "import _xapian" first so that if we fail to import the glue library |
66 | 68 | # we don't generate a broken __init__.pyc or __init__.pyo. |
diff --git a/xapian-bindings/python/module_top.py b/xapian-bindings/python/module_top.py
new file mode 100644
index 0000000..2b75ca2
-
|
+
|
|
| 1 | """ |
| 2 | Xapian is a highly adaptable toolkit which allows developers to easily |
| 3 | add advanced indexing and search facilities to their own |
| 4 | applications. It supports the Probabilistic Information Retrieval |
| 5 | model and also supports a rich set of boolean query operators. |
| 6 | |
| 7 | In addition to the doc strings provided by this python library, you |
| 8 | may wish to look at the library's overall documentation, either |
| 9 | installed along with the bindings or online at |
| 10 | <http://xapian.org/docs/bindings/python/>, as well as the library's |
| 11 | documentation, possibly installed with the library or with its |
| 12 | development files, or again online at <http://xapian.org/docs/>. |
| 13 | """ |