forked from jmschrei/PyPore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
44 lines (40 loc) · 1.38 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
from distutils.core import setup
from distutils.extension import Extension
import numpy as np
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
cmdclass = { }
if use_cython:
ext_modules = [
Extension("PyPore.cparsers", [ "PyPore/cparsers.pyx" ], include_dirs=[np.get_include()] ),
Extension("PyPore.calignment", [ "PyPore/calignment.pyx" ], include_dirs=[np.get_include()] )
]
cmdclass.update({ 'build_ext': build_ext })
else:
ext_modules = [
Extension("PyPore.cparsers", [ "PyPore/cparsers.c" ], include_dirs=[np.get_include()] ),
Extension("PyPore.calignment", [ "PyPore/calignment.c" ], include_dirs=[np.get_include()] )
]
setup(
name='pythonic-porin',
version='0.2.0',
author='Jacob Schreiber',
author_email='[email protected]',
packages=['PyPore'],
url='http://pypi.python.org/pypi/pythonic-porin/',
license='LICENSE.txt',
description='Nanopore Data Analysis package. Provides tools for reading data,\
performing event detection, segmentation, visualization, and analysis using\
hidden Markov models, and other tools. Designed for the UCSC Nanopore Group.',
cmdclass=cmdclass,
ext_modules=ext_modules,
install_requires=[
"cython >= 0.20.1",
"numpy >= 1.8.0",
"matplotlib >= 1.3.1"
],
)