forked from kbandla/pydeep
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
28 lines (24 loc) · 810 Bytes
/
Copy pathsetup.py
File metadata and controls
28 lines (24 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 = "kbandla@in2void.com",
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/",],
) ],
)