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
61 lines (57 loc) · 1.89 KB
/
Copy pathsetup.py
File metadata and controls
61 lines (57 loc) · 1.89 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
55
56
57
58
59
60
61
from setuptools import setup, find_packages, Extension
import os, sys
PY3 = sys.version_info[0] >= 3
IS_PYPY = '__pypy__' in sys.builtin_module_names
if IS_PYPY:
ext_modules = [] # built-in
else:
if sys.platform != 'win32':
extra_compile_args = ['-Wno-unused']
else:
extra_compile_args = []
ext_modules = [Extension('_vmprof',
sources=[
'src/_vmprof.c',
],
depends=[
'src/vmprof_main.h',
'src/vmprof_main_32.h',
'src/vmprof_mt.h',
'src/vmprof_common.h',
],
extra_compile_args=extra_compile_args,
libraries=[])]
if PY3:
extra_install_requires = []
else:
extra_install_requires = ["backports.shutil_which"]
setup(
name='vmprof',
author='vmprof team',
version="0.3.4.dev4",
packages=find_packages(),
description="Python's vmprof client",
long_description='See https://vmprof.readthedocs.org/',
url='https://github.com/vmprof/vmprof-python',
install_requires=[
'requests',
'six',
] + extra_install_requires,
tests_require=['pytest'],
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,
)