xref: /minix3/external/bsd/file/dist/python/README (revision 6b8821515da8851628dd9dcd785dacf07085019b)
1
2This directory contains Python bindings to allow you to access the
3libmagic api. At the moment their status is "experimental" and
4they are not built by default. You may need to edit include and library
5search paths in setup.py so that python's distutils build process can
6find the magic header and lib files.
7
8In order to be able to compile magic-python you need to have python
9and the python-dev packages installed.
10
11Python libraries are always built for a particular version of Python
12(2.2, 2.3, etc), and libraries built for one version will not be seen
13by another.
14
15To build:
16
17$ python setup.py build
18
19Now, you can install the modules:
20
21$ cp build/lib.*/magic.so /usr/lib/python2.3/lib-dynload/
22
23(the directory /usr/lib/python2.3 may vary, depending on your installation)
24
25magic-python should work now!
26
27