Upload Tizen:Base source
[external/file.git] / python / README
1
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.
7
8 In order to be able to compile magic-python you need to have python
9 and the python-dev packages installed.
10
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
13 by another.
14
15 To build:
16
17 $ python setup.py build
18
19 Now, 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
25 magic-python should work now!
26