forked from Gallopsled/pwntools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
53 lines (49 loc) · 1.98 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
#!/usr/bin/env python2
from setuptools import setup, find_packages
from distutils.util import convert_path
from distutils.command.install import INSTALL_SCHEMES
import os, sys, glob
# Get all template files
templates = []
for dirpath, dirnames, filenames in os.walk(convert_path('pwnlib/shellcraft/templates')):
for f in filenames:
templates.append(os.path.relpath(os.path.join(dirpath, f), 'pwnlib'))
# Get the version
ns = {}
with open(convert_path('pwnlib/version.py')) as fd:
exec fd.read() in ns
version = ns['__version__']
# This makes pwntools-LICENSE.txt appear with the package folders
for scheme in INSTALL_SCHEMES.values():
scheme['data'] = scheme['purelib']
setup(
name = 'pwntools',
packages = find_packages(),
version = version,
data_files = [('', ['LICENSE-pwntools.txt'])],
package_data = {
'pwnlib': [
'data/crcsums.txt',
'data/binutils/*',
'data/includes/*.h',
'data/includes/*/*.h',
] + templates,
},
scripts = glob.glob("bin/*"),
description = "This is the CTF framework used by Gallopsled in every CTF.",
author = "Gallopsled et al.",
author_email = "#gallopsled @ freenode.net",
url = 'https://github.com/Gallopsled/pwntools/',
download_url = "https://github.com/Gallopsled/pwntools/tarball/%s" % version,
install_requires = ['paramiko','argparse', 'mako', 'pyelftools',
'capstone==2.1', 'ropgadget', 'pyserial', 'requests', 'psutil'],
license = "Mostly MIT, some GPL/BSD, see LICENSE-pwntools.txt",
classifiers = [
'Topic :: Security',
'Environment :: Console',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Intended Audience :: Developers'
]
)