-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
64 lines (55 loc) · 2.07 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
from setuptools import setup, find_packages, Extension
import numpy
have_cython = False
try:
from Cython.Distutils import build_ext as _build_ext
have_cython = True
except ImportError:
from distutils.command.build_ext import build_ext as _build_ext
print('CYTHON WAS FOUND: ', have_cython)
INSTALL_REQUIRES = ['future', 'numpy >= 1.14', 'pandas >= 0.18.0', 'xarray', 'orderedset', 'pysam'] # scipy
if have_cython:
ext_modules = [
Extension(
"seqtables.core.internals.sam_to_arr", # location of the resulting .so
sources=[
"seqtables/core/internals/cython/sam_to_arr.pyx"
],
include_dirs=[numpy.get_include()],
# language="c++"
)
]
else:
ext_modules = [
Extension(
"seqtables.core.internals.sam_to_arr",
sources=[
"seqtables/core/internals/cython/sam_to_arr.c"
],
# include_dirs=["seqtables/core/internals/cython/"]
include_dirs=[numpy.get_include()]
)
]
setup(
name='seqtables',
version='0.1',
license='MIT',
description='Package for efficient analysis of next generation sequencing amplicon data using numpy and dataframes',
author='Constantine Chrysostomou',
author_email='[email protected]',
url='https://github.com/cchrysostomou/seqtables',
download_url='https://github.com/cchrysostomou/seqtables/archive/v_01.tar.gz',
keywords=['NGS', 'Next generation sequencing', 'dataframe', 'protein engineering', 'amplicon', 'numpy', 'variant analysis', 'sequence logo', 'enrichment'],
packages=find_packages(),
cmdclass={'build_ext': _build_ext},
install_requires=INSTALL_REQUIRES,
ext_modules=ext_modules,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
]
)