setup.py 1.93 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
setup(
    author='',
    author_email='',
    classifiers=[
48
        'Development Status :: 4 - Beta',
49
        'Intended Audience :: Developers',
50
        'Intended Audience :: Science/Research',
51 52 53 54
        'Natural Language :: English',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
55
        'Programming Language :: Python :: 3.8',
56
        'Programming Language :: Python :: 3.9'
57 58
    ],
    description="Python tools to interact with darshan log records of HPC applications.",
59 60
    #long_description=readme,
    long_description="PyDarshan",
61
    ext_modules = ext_modules,  
62 63 64 65
    install_requires=requirements,
    include_package_data=True,
    keywords='darshan',
    name='darshan',
66
    packages=find_packages(include=['darshan*']),
67 68 69 70
    setup_requires=setup_requirements,
    test_suite='tests',
    tests_require=test_requirements,
    url='https://www.mcs.anl.gov/research/projects/darshan/',
71
    version='0.0.4',
72 73
    zip_safe=False,
)