Last active
August 29, 2015 14:07
-
-
Save kbandla/51d53470710e4ca77c90 to your computer and use it in GitHub Desktop.
pydeep issue #8 solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
In some cases, OS X 10.9.5 is unable to find fuzzy.h | |
A temporary solution is to force setup.py to look in library_dirs and include_dirs | |
''' | |
from distutils.core import setup, Extension | |
import os | |
def get_version(): | |
with open(os.path.join(os.path.dirname(__file__), 'pydeep.c'),'r') as f: | |
for line in f: | |
if "#define PYDEEP_VERSION" in line: | |
return line.split()[-1].strip('"') | |
setup( | |
name = "pydeep", | |
author = "Kiran Bandla", | |
author_email = "[email protected]", | |
license = "BSD", | |
version = get_version(), | |
description = "Python bindings for ssdeep", | |
long_description = "Python/C Wrapper for the ssdeep library", | |
url = "http://www.github.com/kbandla/pydeep", | |
ext_modules = [Extension( | |
"pydeep", | |
sources = ["pydeep.c"], | |
libraries = ["fuzzy"], | |
library_dirs=["/usr/local/lib/",], | |
include_dirs=["/usr/local/include/",], | |
) ], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment