summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Hupp <adam@hupp.org>2017-12-03 21:39:24 -0800
committerGitHub <noreply@github.com>2017-12-03 21:39:24 -0800
commit677c19fc7509593b8e76fb31edbe43c976d2e181 (patch)
treeb7948f3a8dd77099d21f7bdc8fb2f1e8685d7bd5
parent8f1fb84d9780c9fccf4876821aaf3c708b4c5981 (diff)
downloadpython-magic-677c19fc7509593b8e76fb31edbe43c976d2e181.tar.gz
Update README.md
-rw-r--r--README.md13
1 files 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`