setup.py 1.9 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
# NOTE: The Python C extension is currently only used to automate
# the build process of binary wheels for distribution via PyPi.
#
# If you are building darshan yourself and make libdarshan-util.so 
# discoverable in the environment by means of LD_LIBRARY_PATH or 
# pkg-config there is no need to build the extension.
23
ext_modules = []
24 25 26 27 28 29 30 31 32
if '--with-extension' in sys.argv:
    ext_modules.append(Extension(
        'darshan.extension',
        #optional=True,
        sources=['darshan/extension.c'],
        include_dirs=['/usr/include'],
        libraries=['darshan-util']
        ))
    sys.argv.remove('--with-extension')
33 34


35 36 37 38
setup(
    author='',
    author_email='',
    classifiers=[
39
        'Development Status :: 4 - Beta',
40
        'Intended Audience :: Developers',
41
        'Intended Audience :: Science/Research',
42 43 44 45
        'Natural Language :: English',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
        'Programming Language :: Python :: 3.7',
46
        'Programming Language :: Python :: 3.8',
47
        'Programming Language :: Python :: 3.9'
48 49
    ],
    description="Python tools to interact with darshan log records of HPC applications.",
50
    long_description=readme,
51
    ext_modules = ext_modules,  
52 53 54 55
    install_requires=requirements,
    include_package_data=True,
    keywords='darshan',
    name='darshan',
56
    packages=find_packages(include=['darshan*']),
57 58 59 60
    setup_requires=setup_requirements,
    test_suite='tests',
    tests_require=test_requirements,
    url='https://www.mcs.anl.gov/research/projects/darshan/',
Jakob Luettgau's avatar
Jakob Luettgau committed
61
    version='0.0.8.4',
62 63
    zip_safe=False,
)