<gh_stars>0
#!/usr/bin/env python

"""The setup script."""

import distutils
import platform

from setuptools import find_packages, setup

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

with open('HISTORY.rst') as history_file:
    history = history_file.read()

requirements = ['numpy==1.19.3', 'tqdm', 'Pillow', 'ttkthemes']

setup_requirements = ['pytest-runner', ]

test_requirements = ['pytest>=3', ]

# Determine the correct platform
system = platform.system()
arch, _ = platform.architecture()
if system == 'Linux':
    if arch == '64bit':
        efxsdk = 'lib/linux64/efX-SDK.so'
    else:
        efxsdk = 'lib/linux32/efX-SDK.so'
if system == 'Windows':
    efxsdk = 'lib/win32/efX-SDK.dll'
if system == 'Darwin':
    efxsdk = 'lib/mac32/efX-SDK'

setup(
    author="<NAME>",
    author_email='<EMAIL>',
    python_requires='>=3.8',
    classifiers=[
        'Development Status :: 2 - Pre-Alpha',
        'Intended Audience :: Developers',
        'Natural Language :: English',
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.8',
    ],
    description="Utility library for consuming and manipulating x-ray data in RAW format",
    entry_points={
        'console_scripts': [
            'raw-convert=rawtools.cli:raw_convert',
            'raw-generate=rawtools.cli:raw_generate',
            'nsihdr2raw=rawtools.cli:raw_nsihdr',
            'raw2img=rawtools.cli:raw_image',
            'raw-qc=rawtools.cli:raw_qc'
        ],
    },
    install_requires=requirements,
    long_description=readme + '\n\n' + history,
    include_package_data=True,
    package_data={
        "efxsdk": [efxsdk]
    },
    keywords='rawtools',
    name='rawtools',
    packages=find_packages(include=['rawtools', 'rawtools.*']),
    setup_requires=setup_requirements,
    test_suite='tests',
    tests_require=test_requirements,
    url='https://github.com/tparkerd/python-rawtools',
    version='0.3.0',
    zip_safe=False,
)
