|
12 | 12 |
|
13 | 13 | HOMEPAGE = "https://github.com/sumerc/yappi"
|
14 | 14 | NAME = "yappi"
|
15 |
| -VERSION = "0.99" |
16 |
| -_DEBUG = False # compile/link code for debugging |
17 |
| -_PROFILE = False # profile yappi itself |
| 15 | +VERSION = "1.0" |
| 16 | +_DEBUG = False # compile/link code for debugging |
| 17 | +_PROFILE = False # profile yappi itself |
18 | 18 |
|
19 | 19 | user_macros = []
|
20 | 20 | user_libraries = []
|
|
23 | 23 |
|
24 | 24 | if os.name == 'posix' and sys.platform != 'darwin':
|
25 | 25 | compiler = new_compiler()
|
26 |
| - if compiler.has_function('timer_create', libraries=('rt',)): |
27 |
| - user_macros.append(('LIB_RT_AVAILABLE','1')) |
| 26 | + if compiler.has_function('timer_create', libraries=('rt', )): |
| 27 | + user_macros.append(('LIB_RT_AVAILABLE', '1')) |
28 | 28 | user_libraries.append('rt')
|
29 | 29 | if _DEBUG:
|
30 | 30 | if os.name == 'posix':
|
|
60 | 60 | 'Topic :: Software Development :: Libraries :: Python Modules',
|
61 | 61 | ]
|
62 | 62 |
|
63 |
| -setup(name=NAME, |
| 63 | +setup( |
| 64 | + name=NAME, |
64 | 65 | version=VERSION,
|
65 | 66 | author="Sumer Cip",
|
66 | 67 |
|
67 |
| - ext_modules = [Extension( |
68 |
| - "_yappi", |
69 |
| - sources = ["_yappi.c", "callstack.c", "hashtab.c", "mem.c", "freelist.c", "timing.c"], |
70 |
| - define_macros = user_macros, |
71 |
| - libraries = user_libraries, |
72 |
| - extra_compile_args = compile_args, |
73 |
| - extra_link_args = link_args, |
74 |
| - )], |
75 |
| - py_modules = ["yappi"], |
76 |
| - entry_points = { |
77 |
| - 'console_scripts': [ |
78 |
| - 'yappi = yappi:main', |
| 68 | + ext_modules=[ |
| 69 | + Extension( |
| 70 | + "_yappi", |
| 71 | + sources=[ |
| 72 | + "_yappi.c", "callstack.c", "hashtab.c", "mem.c", "freelist.c", |
| 73 | + "timing.c" |
| 74 | + ], |
| 75 | + define_macros=user_macros, |
| 76 | + libraries=user_libraries, |
| 77 | + extra_compile_args=compile_args, |
| 78 | + extra_link_args=link_args, |
| 79 | + ) |
| 80 | + ], |
| 81 | + py_modules=["yappi"], |
| 82 | + entry_points={ |
| 83 | + 'console_scripts': [ |
| 84 | + 'yappi = yappi:main', |
79 | 85 | ],
|
80 | 86 | },
|
81 | 87 | description="Yet Another Python Profiler",
|
82 |
| - long_description = long_description, |
| 88 | + long_description=long_description, |
83 | 89 | long_description_content_type='text/markdown',
|
84 |
| - keywords = "python thread multithread profiler", |
| 90 | + keywords="python thread multithread profiler", |
85 | 91 | classifiers=CLASSIFIERS,
|
86 |
| - license = "MIT", |
87 |
| - url = HOMEPAGE, |
| 92 | + license="MIT", |
| 93 | + url=HOMEPAGE, |
88 | 94 | # download_url = "http://bitbucket.org/sumerc/yappi/downloads/%s-%s.tar.gz" % (NAME, VERSION),
|
89 |
| - test_suite = 'nose.collector' |
90 |
| -) |
| 95 | + test_suite='nose.collector') |
0 commit comments