source: main/trunk/binaries/windows/bin/GNUfile/contrib/file/5.03/file-5.03-src/python/README@ 31442

Last change on this file since 31442 was 31442, checked in by ak19, 7 years ago

Adding the GNUFile windows port of linux file utility to detect bitness of an executable. Link to license included and added a GS_README text file with some basic explanations.

File size: 810 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.