Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (50 loc) · 1.73 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (50 loc) · 1.73 KB
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
import sys
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as _build_ext
def readme():
with open('README.md') as f:
return f.read()
try:
import numpy as np
include_dirs = [np.get_include()]
except:
sys.stderr.write(
'*' * 60 + '\nINSTALLATION ERROR:\n'
'\tNeed to install numpy before tombo installation.\n' +
'\tThis is required in order to get maximum efficincy from ' +
'cython code optimizations.\nTo install run:\n$ pip install numpy\n' +
'*' * 60 + '\n')
sys.exit(1)
setup(
name = "tombo",
version = "1.0",
packages = ["tombo"],
install_requires = ['h5py', 'numpy', 'scipy', 'cython', 'setuptools >= 18.0'],
extras_require={'plot':['rpy2'], 'alt_est':['scikit-learn'],
'full':['rpy2', 'scikit-learn']},
author = "Marcus Stoiber",
author_email = "marcus.stoiber@nanoporetech.com",
description='Analysis of raw nanopore sequencing data.',
long_description = readme(),
license = "mpl-2.0",
keywords = "nanopore high-throughput sequencing correction genome",
url = "https://github.com/nanoporetech/tombo",
entry_points={
'console_scripts': [
'tombo = tombo.__main__:main'
]
},
include_package_data=True,
ext_modules=[
Extension("tombo.dynamic_programming",
["tombo/dynamic_programming.pyx"],
include_dirs=include_dirs,
language="c++"),
Extension("tombo.c_helper",
["tombo/c_helper.pyx"],
include_dirs=include_dirs,
language="c++")
],
test_suite='nose2.collector.collector',
tests_require=['nose2'],
)