setup.py 2.05 KB
Newer Older
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-

4
5
6
from setuptools import setup, find_packages, Extension
import sys

7
8
9
10
11

with open('README.rst') as readme_file:
    readme = readme_file.read()


12
requirements = ['cffi', 'numpy', 'pandas', 'matplotlib']
13
14
15
16
setup_requirements = ['pytest-runner', ]
test_requirements = ['pytest']


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
ext_modules = []

if '--with-extension' in sys.argv:
    ext_modules.append(Extension(
        'darshan.extension',
        #optional=True,
        sources=['darshan/extension.c'],
        library_dirs=['/usr/lib64/atlas/', '/usr/lib/atlas'],
        include_dirs=['/usr/include'],
        libraries=['darshan-util']
        ))
    sys.argv.remove('--with-extension')



#ext_modules.append(Extension(
#    'darshan.extension',
#    #optional=True,
#    sources=['darshan/extension.c'],
#    library_dirs=['/usr/lib64/atlas/', '/usr/lib/atlas'],
#    include_dirs=['/usr/include'],
#    libraries=['darshan-util']
#    ))




44
45
46
47
48
49
50
51
setup(
    author='',
    author_email='',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python :: 3',
52
53
#        'Programming Language :: Python :: 3.4',
#        'Programming Language :: Python :: 3.5',
54
55
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
56
57
        'Programming Language :: Python :: 3.8',
        'Programming Language :: Python :: 3.9',
58
59
    ],
    description="Python tools to interact with darshan log records of HPC applications.",
60
61
62
    #long_description=readme,
    long_description="PyDarshan",

63
    #options={"bdist_wheel": {"universal": False}},
64
65
66
67
    
    
    ext_modules = ext_modules,
    
68
69
70
71
    install_requires=requirements,
    include_package_data=True,
    keywords='darshan',
    name='darshan',
72
    packages=find_packages(include=['darshan*']),
73
74
75
76
    setup_requires=setup_requirements,
    test_suite='tests',
    tests_require=test_requirements,
    url='https://www.mcs.anl.gov/research/projects/darshan/',
77
    version='0.0.2',
78
79
    zip_safe=False,
)