-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
49 lines (43 loc) · 1.09 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
from setuptools import setup
r2zin = False
requires = [
"capstone",
"mkYARA",
"r2pipe",
"rzpipe",
"yara-python",
]
def is_tool(name):
"""Check whether `name` is on PATH and marked as executable."""
# from whichcraft import which
from shutil import which
return which(name) is not None
for c in [ 'r2', 'radare2', 'rizin']:
if is_tool(c):
r2zin = True
if r2zin is False:
import sys
print("!!!!!\n[FATAL] Neither rizin or radare2 found!!!\n!!!!!")
sys.exit(1)
setup(
name="steezy",
author="Conor Quigley",
author_email="[email protected]",
url="https://github.com/schrodyn/steezy",
version="2.0.0",
packages=["steezy"],
license="BSD-2-Clause",
python_requires='>=3.7',
install_requires=requires,
classifiers=[
'Environment :: Console',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3.7',
],
entry_points={
"console_scripts": [
"steezy = steezy.__main__:main"
]
},
)