-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·38 lines (35 loc) · 1.22 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
from Cython.Distutils import build_ext
from Cython.Build import cythonize
from setuptools import setup, Extension, find_packages
import numpy
try:
from Cython.Distutils import build_ext
USE_CYTHON = True
except ImportError:
USE_CYTHON = False
if USE_CYTHON:
ext = '.pyx'
cmdclass = {'build_ext': build_ext}
ext_modules = cythonize([Extension("LOCH_MappingTools", ["obelisc/LOCH_MappingTools.pyx"], include_dirs=[numpy.get_include()])])
else:
ext = '.cpp'
cmdclass = {}
ext_modules = [Extension("LOCH_MappingTools", ["obelisc/LOCH_MappingTools.cpp"], include_dirs=[numpy.get_include()])]
setup(
name='Obelisc',
version='0.0.2',
description='SNP streak-based nonparametric linkage analysis tool',
long_description="README.md",
author='Kyuto Sonehara',
author_email='[email protected]',
url='https://github.com/qsonehara/Obelisc',
packages=find_packages(exclude=('tests', 'docs')),
install_requires=["numpy","pandas","matplotlib","pysnptools>=0.4.6","argparse"],
entry_points={
"console_scripts": [
"obelisc = obelisc.main:main"
]
},
cmdclass=cmdclass,
ext_modules=ext_modules
)