-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
68 lines (55 loc) · 1.89 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
66
67
68
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
def which(program):
import os
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
f_path, _ = os.path.split(program)
if f_path:
if is_exe(program):
return program
else:
for path in os.environ['PATH'].split(os.pathsep):
exe_file = os.path.join(path, program)
if is_exe(exe_file):
return exe_file
return None
if sys.version_info.major == 3 and sys.version_info.minor < 3:
print('Unfortunately, your python version is not supported!\n Please upgrade at least to python 3.3!')
sys.exit(1)
if sys.platform == 'darwin' or sys.platform == 'win32':
print('Unfortunately, we do not support your platform %s' % sys.platform)
sys.exit(1)
if which('protoc') is None:
print('Unable to find protoc executable, please install it.')
print('On Debian-like OS, run sudo apt-get install protobuf-compiler')
sys.exit(1)
install_requires = [
'mitmproxy==3.0.4',
'bitstring==3.1.5',
'flatten-json==0.1.6',
'requests==2.18.4',
'beautifulsoup4==4.6.0',
'tinycss==0.4',
'yara-python==3.7.0',
'yapsy==1.11.223'
]
setup(name = 'phorcys',
version = '1.0.0',
description = 'Network payload analyzer',
author = 'U+039b',
author_email = '[email protected]',
url = 'https://github.com/U039b/Phorcys.git',
packages = find_packages(exclude = ['*.tests', '*.tests.*', 'test*', 'tests']),
install_requires = install_requires,
# zip_safe = False,
scripts = ['./phorcys_decode.py'],
classifiers = [
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Topic :: Security',
'Topic :: Utilities',
]
)