forked from vmprof/vmprof-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (48 loc) · 1.75 KB
/
setup.py
File metadata and controls
54 lines (48 loc) · 1.75 KB
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
from setuptools import setup, find_packages, Extension
import os, sys
j = os.path.join
libdwarf = j(j(j(os.path.dirname(os.path.abspath(__file__)), 'src'),
'hotpatch'), 'libdwarf.a')
if '__pypy__' in sys.builtin_module_names:
ext_modules = [] # built-in
else:
ext_modules = [Extension('_vmprof',
sources=[
'src/_vmprof.c',
'src/hotpatch/tramp.c',
'src/hotpatch/elf.c',
'src/hotpatch/x86_gen.c',
'src/hotpatch/util.c',
],
extra_compile_args=['-Wno-unused',
'-I/usr/include/elf',
'-I/usr/include/libdwarf'],
libraries=['elf', 'unwind', 'rt'],
extra_link_args=['%s' % libdwarf])]
setup(
name='vmprof',
author='vmprof team',
author_email='fijal@baroquesoftware.com',
version="0.1.5.5",
packages=find_packages(),
description="Python's vmprof client",
install_requires=[
'six',
'click'
],
entry_points = {
'console_scripts': [
'vmprofshow = vmprof.show:main'
]},
classifiers=[
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
zip_safe=False,
include_package_data=True,
ext_modules=ext_modules,
)