pyfilemagic /

Filename Size Date modified Message
656 B
97.9 KB
3.5 KB
4.1 KB
1.8 KB
1.9 KB

An interface to libmagic, made with Cython so it will work with Python3

(At the time of this writing, Gentoo's sys-apps/file did not support Python 3.)

To install, say something like:

python build_ext -L/where/ -I/where/magic.h/is python install --prefix=/where/to/put

To install without Cython (using the pre-Cythoned C source file pyfilemagic-no_cython.c):

python build_ext [--library-dirs=/where_to_look] python install [--prefix=/where_to_put]

For the benefit of Gentoo users, an ebuild is included.