forked from lh3/cgranges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.32 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
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
cmdclass = {}
try:
from Cython.Build import build_ext
except ImportError: # without Cython
module_src = 'python/cgranges.c'
else: # with Cython
module_src = 'python/cgranges.pyx'
cmdclass['build_ext'] = build_ext
import sys, platform
sys.path.append('python')
include_dirs = ["."]
def readme():
with open('python/README.rst') as f:
return f.read()
setup(
name = 'cgranges',
version = '0.1',
url = 'https://github.com/lh3/cgranges',
description = 'Genomic interval overlap query for python',
long_description = readme(),
author = 'Heng Li',
author_email = '[email protected]',
license = 'MIT',
keywords = 'interval',
ext_modules = [Extension('cgranges',
sources = [module_src, 'cgranges.c'],
depends = ['cgranges.h', 'khash.h', 'python/cgranges.pyx'],
include_dirs = include_dirs)],
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Programming Language :: C',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Bio-Informatics'],
cmdclass = cmdclass)