|
| 1 | +import os |
1 | 2 | from distutils.core import setup, Extension |
2 | 3 | import scorep.helper |
3 | 4 |
|
|
20 | 21 |
|
21 | 22 | cmodules = [] |
22 | 23 | (include, _, _, _, _) = scorep.helper.generate_compile_deps() |
| 24 | +src_folder = os.path.abspath('src') |
| 25 | +include += [src_folder] |
23 | 26 | cmodules.append(Extension('scorep.scorep_bindings', |
24 | 27 | include_dirs=include, |
25 | | - libraries=[], |
| 28 | + define_macros=[('PY_SSIZE_T_CLEAN', '1')], |
26 | 29 | extra_compile_args=["-std=c++11"], |
27 | 30 | sources=['src/scorep.cpp'])) |
28 | 31 |
|
29 | 32 | setup( |
30 | 33 | name='scorep', |
31 | | - version='3.0', |
| 34 | + version=scorep._version.__version__, |
32 | 35 | description='This is a scorep tracing package for python', |
33 | 36 | author='Andreas Gocht', |
34 | 37 | author_email='andreas.gocht@tu-dresden.de', |
35 | 38 | url='https://github.com/score-p/scorep_binding_python', |
36 | 39 | long_description=''' |
37 | 40 | This package allows tracing of python code using Score-P. |
38 | 41 | A working Score-P version is required. |
39 | | -For MPI tracing it uses LD_PREALOAD. |
| 42 | +To enable tracing it uses LD_PRELOAD to load the Score-P runtime libraries. |
40 | 43 | Besides this, it uses the traditional python-tracing infrastructure. |
41 | 44 | ''', |
42 | 45 | packages=['scorep', 'scorep.instrumenters'], |
43 | | - ext_modules=cmodules |
| 46 | + ext_modules=cmodules, |
| 47 | + classifiers=[ |
| 48 | + 'Development Status :: 4 - Beta', |
| 49 | + 'Environment :: Console', |
| 50 | + 'Intended Audience :: Developers', |
| 51 | + 'Topic :: Software Development :: Testing', |
| 52 | + 'Topic :: Software Development :: Quality Assurance', |
| 53 | + 'Programming Language :: Python :: 2', |
| 54 | + 'Programming Language :: Python :: 2.7', |
| 55 | + 'Programming Language :: Python :: 3', |
| 56 | + 'Programming Language :: Python :: 3.4', |
| 57 | + 'Programming Language :: Python :: 3.5', |
| 58 | + 'Programming Language :: Python :: 3.6', |
| 59 | + 'Programming Language :: Python :: 3.7', |
| 60 | + 'Programming Language :: Python :: 3.8', |
| 61 | + 'Programming Language :: Python :: Implementation :: CPython', |
| 62 | + 'Operating System :: POSIX', |
| 63 | + 'Operating System :: Unix', |
| 64 | + ], |
44 | 65 | ) |
0 commit comments