
import sys
import os
from codecs import open
from setuptools import setup, find_packages

if sys.version_info<(3, 7):
    sys.stderr.write("At least Python 3.7 is required. Please install Python 3.7\n")
    exit(1)

try:
	from setuptools import setup
except ImportError as e:
    sys.stderr.write("Could not import setuptools. Please install setuptools and try again to install htseq-clip. \n Error: {}".format(e))
    sys.exit(1)

#try:
#	import Cython
#except ImportError as e:
#    sys.stderr.write("Could not import HTSeq dependency 'Cython'. Please install it with pip install Cython and then try again to install htseq-clip. \n Exception: {}".format(e))
#    sys.exit(1)

try:
	import numpy
except ImportError as e:
    sys.stderr.write("Could not import numpy. Please install it with pip install numpy and then try again to install htseq-clip. \n Exception: {}".format(e))
    sys.exit(1)

here = os.path.abspath(os.path.dirname(__file__))

# Get the long description from the README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()


setup(
    name='htseq-clip',
    version='2.14.0b0',
    description='htseq-clip: a toolset for the analysis of eCLIP/iCLIP datasets',
	long_description=long_description,
    long_description_content_type='text/markdown',
    url='https://github.com/EMBL-Hentze-group/htseq-clip',
    author='Thomas Schwarzl, Sudeep Sahadevan, Marko Fritz, Nadia Ashraf',
    author_email='schwarzl@embl.de, sudeep.sahadevan@embl.de',
	zip_safe=False,
    license='MIT',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Intended Audience :: Science/Research',
        'Topic :: Scientific/Engineering :: Bio-Informatics',
        'License :: OSI Approved :: MIT License',
        'Environment :: Console',
        'Natural Language :: English',
        'Programming Language :: Python :: 3',
    ],
	install_requires=['HTSeq', 'pysam'],
    packages=['clip'],
    test_suite = 'tests',
	entry_points = {
        'console_scripts': ['htseq-clip=clip.command_line:main'],
    }
)
