2 This directory contains Python bindings to allow you to access the
3 libmagic api. At the moment their status is "experimental" and
4 they are not built by default. You may need to edit include and library
5 search paths in setup.py so that python's distutils build process can
6 find the magic header and lib files.
8 In order to be able to compile magic-python you need to have python
9 and the python-dev packages installed.
11 Python 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
17 $ python setup.py build
19 Now, you can install the modules:
21 $ cp build/lib.*/magic.so /usr/lib/python2.3/lib-dynload/
23 (the directory /usr/lib/python2.3 may vary, depending on your installation)
25 magic-python should work now!