README 810 B

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