diff options
| author | Adam Hupp <adam@hupp.org> | 2017-12-03 21:39:24 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-03 21:39:24 -0800 |
| commit | 677c19fc7509593b8e76fb31edbe43c976d2e181 (patch) | |
| tree | b7948f3a8dd77099d21f7bdc8fb2f1e8685d7bd5 | |
| parent | 8f1fb84d9780c9fccf4876821aaf3c708b4c5981 (diff) | |
| download | python-magic-677c19fc7509593b8e76fb31edbe43c976d2e181.tar.gz | |
Update README.md
| -rw-r--r-- | README.md | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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` |
