From 677c19fc7509593b8e76fb31edbe43c976d2e181 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Sun, 3 Dec 2017 21:39:24 -0800 Subject: Update README.md --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e535c14..8d2e0bd 100644 --- a/README.md +++ b/README.md @@ -55,11 +55,18 @@ Other sources: - pypi: http://pypi.python.org/pypi/python-magic/ - github: https://github.com/ahupp/python-magic -### Dependencies +### Windows -On Windows, copy magic1.dll, regex2.dll, and zlib1.dll onto your PATH from the Binaries and Dependencies zipfiles provided by the [File for Windows](http://gnuwin32.sourceforge.net/packages/file.htm) project. You will need to copy the file `magic` out of `[binary-zip]\share\misc`, and pass it's location to `Magic(magic_file=...)`. If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows. +You'll need DLLs for libmagic. @julian-r has uploaded a versoin of this project that includes binaries to pypi: +https://pypi.python.org/pypi/python-magic-bin/0.4.14 -On OSX: +Other sources of the libraries in the past have been [File for Windows](http://gnuwin32.sourceforge.net/packages/file.htm) . You will need to copy the file `magic` out of `[binary-zip]\share\misc`, and pass it's location to `Magic(magic_file=...)`. + +If you are using a 64-bit build of python, you'll need 64-bit libmagic binaries which can be found here: https://github.com/pidydx/libmagicwin64. Newer version can be found here: https://github.com/nscaife/file-windows. + + + +### OSX - When using Homebrew: `brew install libmagic` - When using macports: `port install file` -- cgit v1.2.1