#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup, Extension

setup(
    name='decor',
    version='2017.5.12.1',
    description='Detector corrections for azimuthal integration',
    author='Vadim Dyadkin',
    author_email='dyadkin@gmail.com',
    url='https://hg.3lp.cx/decor',
    license='GPLv3',
    install_requires=[
        'numpy>=1.9',
        'cryio>=2016.09.09',
    ],
    package_dir={'decor': ''},
    py_modules=[
        'decor.__init__',
        'decor.background',
        'decor.darkcurrent',
        'decor.distortion',
        'decor.floodfield',
        'decor.spline',
        'decor.incidence',
        'decor.beamline',
        'decor.mask',
        'decor.normalization',
    ],
    ext_modules=[
        Extension('decor._decor', ['src/decormodule.c', 'src/distortion.c', 'src/bispev.c'],
                  extra_compile_args=['-O3']),
    ],
    include_package_data=True,
)
