forked from mitre/multiscanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·65 lines (59 loc) · 1.64 KB
/
setup.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from __future__ import print_function
import os
from distutils.core import setup
def recursive_dir_list(path, exclude=['.pyc', '__pycache__']):
ret = []
for item in os.listdir(path):
fail = False
for test in exclude:
if item.endswith(test):
fail = True
continue
if fail:
continue
item = os.path.join(path, item)
if os.path.isdir(item):
ret.extend(recursive_dir_list(item))
else:
ret.append(item)
return ret
to_walk = ['docs', 'etc', 'libs', 'modules', 'storage', 'utils']
data_files = []
for directory in to_walk:
data_files.extend(recursive_dir_list(directory))
setup(
name='multiscanner',
version='1.0.0',
url='https://github.com/MITRECND/multiscanner',
license='MPL 2.0',
author='Drew Bonasera',
author_email='',
packages=['multiscanner'],
package_dir={'multiscanner': '.'},
package_data={'multiscanner': data_files},
description='A file analysis framework that allows the user to evaluate a set of files with a set of tools.',
install_requires=[
'future',
'configparser',
# Required by modules
'bitstring',
'paramiko',
'pefile',
'pyclamd',
'python-magic',
'requests',
'ssdeep',
# Required by PDF
'reportlab',
# Required by API
'flask',
'sqlalchemy',
'sqlalchemy-utils',
# Required by storage modules
'elasticsearch',
'pymongo',
],
entry_points={
'console_scripts': ['multiscanner=multiscanner:_main']
}
)