-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (40 loc) · 1.63 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
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
ptraceunwind_extension = setuptools.Extension(
'pointbreak.ptraceunwind',
sources=['pointbreak/ptraceunwind.c'],
libraries=['unwind-generic', 'unwind-ptrace'],
#extra_compile_args=['-g', '-fno-omit-frame-pointer', '-fno-inline-small-functions', '-O0'], # used for performance/debug
)
ptrace_extension = setuptools.Extension(
'pointbreak.ptrace',
sources=['pointbreak/ptrace.c'],
#extra_compile_args=['-g', '-fno-omit-frame-pointer', '-fno-inline-small-functions', '-O0'], # used for performance/debug
)
process_extension = setuptools.Extension(
'pointbreak.process',
sources=['pointbreak/process.c'],
#extra_compile_args=['-g', '-fno-omit-frame-pointer', '-fno-inline-small-functions', '-O0'], # used for performance/debug
)
setuptools.setup(
name="pointbreak",
version="0.0.3",
author="Tony Simpson",
author_email="agjasimpson@gmail.com",
description="System process debug and analysis library.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/tonysimpson/pointbreak",
install_requires=["distorm3", "pyelftools", 'intervaltree'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
ext_modules=[process_extension, ptrace_extension, ptraceunwind_extension],
packages=setuptools.find_packages(),
classifiers=(
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
)
)