chiark / gitweb /
get MIME types without strictly requiring python-magic
authorHans-Christoph Steiner <hans@eds.org>
Fri, 31 Jul 2015 13:50:20 +0000 (15:50 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 31 Jul 2015 22:38:41 +0000 (00:38 +0200)
commit752b258ba72756a800e15f47703d07524171f156
treed6f439fb5185565262ff333a2250eadff41c5359
parent37694a615585cbd430f9c84fe124ad66b6e21bae
get MIME types without strictly requiring python-magic

There are two forms of python-magic, one included in libmagic that is
default on Debian, and another Python wrapper for libmagic that is
called 'python-magic' on pypi.  Those both rely on the compiled binary
library libmagic.  For platforms without good package management, fallback
to using the built-in 'mimetypes' library if 'magic' is not available.

This supports OSX, Windows, and BSD.
fdroidserver/common.py
setup.py