annotate ezBAMQC/setup.py @ 19:caed0168f704

wrapper
author youngkim
date Wed, 30 Mar 2016 13:46:41 -0400
parents 6610eedd9fae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
1 #!/usr/bin/env python2.7
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
2 # Setup for ezBAMQC, utilities for the Sequence Alignment/Map format.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
3 #
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
4 # Copyright (C) 2015 Bioinformatics Shared Resource, CSHL.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
5 # Portions copyright (C) 2015 Cold Spring Harbor Laboratory.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
6 #
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
7 # Permission is hereby granted, free of charge, to any person obtaining a copy
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
8 # of this software and associated documentation files (the "Software"), to deal
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
9 # in the Software without restriction, including without limitation the rights
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
10 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
11 # copies of the Software, and to permit persons to whom the Software is
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
12 # furnished to do so, subject to the following conditions:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
13 #
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
14 # The above copyright notice and this permission notice shall be included in
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
15 # all copies or substantial portions of the Software.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
16 #
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
17 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
18 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
19 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
20 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
21 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
22 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
23 # DEALINGS IN THE SOFTWARE.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
24
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
25 import argparse
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
26 import sys, os, glob, fnmatch
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
27
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
28 ## Added 10 Jan 2008
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
29 from distutils.core import setup, Extension
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
30 import distutils.command.install_data
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
31
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
32 ## Code borrowed from wxPython's setup and config files
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
33 ## Thanks to Robin Dunn for the suggestion.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
34 ## I am not 100% sure what's going on, but it works!
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
35 def opj(*args):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
36 path = os.path.join(*args)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
37 return os.path.normpath(path)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
38
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
39 ## Added 10 Jan 2008
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
40 # Specializations of some distutils command classes
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
41 class wx_smart_install_data(distutils.command.install_data.install_data):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
42 """need to change self.install_dir to the actual library dir"""
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
43 def run(self):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
44 install_cmd = self.get_finalized_command('install')
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
45 self.install_dir = getattr(install_cmd, 'install_lib')
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
46 return distutils.command.install_data.install_data.run(self)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
47
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
48 def find_data_files(srcdir, *wildcards, **kw):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
49 # get a list of all files under the srcdir matching wildcards,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
50 # returned in a format to be used for install_data
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
51 def walk_helper(arg, dirname, files):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
52 if '.svn' in dirname:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
53 return
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
54 names = []
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
55 lst, wildcards = arg
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
56 for wc in wildcards:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
57 wc_name = opj(dirname, wc)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
58 for f in files:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
59 filename = opj(dirname, f)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
60
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
61 if fnmatch.fnmatch(filename, wc_name) and not os.path.isdir(filename):
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
62 names.append(filename)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
63 if names:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
64 lst.append( (dirname, names ) )
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
65
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
66 file_list = []
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
67 recursive = kw.get('recursive', True)
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
68 if recursive:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
69 os.path.walk(srcdir, walk_helper, (file_list, wildcards))
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
70 else:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
71 walk_helper((file_list, wildcards),
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
72 srcdir,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
73 [os.path.basename(f) for f in glob.glob(opj(srcdir, '*'))])
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
74 return file_list
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
75
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
76 ## This is a list of files to install, and where:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
77 ## Make sure the MANIFEST.in file points to all the right
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
78 ## directories too.
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
79 files = find_data_files('ezBAMQC/', '*.*')
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
80
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
81 from distutils.core import setup
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
82
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
83 def readme():
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
84 with open('README.rst') as f:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
85 return f.read()
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
86
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
87 if sys.version_info[0] != 2 or sys.version_info[1] < 7:
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
88 print >> sys.stderr, "ERROR: ezBAMQC requires Python 2.7"
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
89 sys.exit()
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
90
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
91 BAMQC_HEADER = [
9
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
92 'src/ezBAMQC/Constants.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
93 'src/ezBAMQC/Coverage_prof.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
94 'src/ezBAMQC/GeneFeatures.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
95 'src/ezBAMQC/InnerDist_prof.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
96 'src/ezBAMQC/IntervalTree.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
97 'src/ezBAMQC/Mappability.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
98 'src/ezBAMQC/parseBAM.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
99 'src/ezBAMQC/ReadDup_prof.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
100 'src/ezBAMQC/Results.h',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
101 'src/ezBAMQC/rRNA.h'
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
102 ]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
103
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
104 BAMQC_SOURCE = [
9
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
105 'src/ezBAMQC/Coverage_prof.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
106 'src/ezBAMQC/GeneFeatures.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
107 'src/ezBAMQC/InnerDist_prof.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
108 'src/ezBAMQC/IntervalTree.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
109 'src/ezBAMQC/Mappability.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
110 'src/ezBAMQC/parseBAM.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
111 'src/ezBAMQC/ReadDup_prof.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
112 'src/ezBAMQC/Results.cpp',
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
113 'src/ezBAMQC/rRNA.cpp'
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
114 ]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
115
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
116 ###TODO HAVE TO SPLIT INTO TWO AND MAKE THE A FILE
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
117 HTSLIB_PUBLIC_HEADERS = [
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
118 'src/htslib/bgzf.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
119 'src/htslib/faidx.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
120 'src/htslib/hfile.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
121 'src/htslib/hts.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
122 'src/htslib/hts_defs.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
123 'src/htslib/khash.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
124 'src/htslib/klist.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
125 'src/htslib/knetfile.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
126 'src/htslib/kseq.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
127 'src/htslib/ksort.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
128 'src/htslib/kstring.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
129 'src/htslib/regidx.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
130 'src/htslib/sam.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
131 'src/htslib/synced_bcf_reader.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
132 'src/htslib/tbx.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
133 'src/htslib/vcf.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
134 'src/htslib/vcf_sweep.h',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
135 'src/htslib/vcfutils.h'
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
136 ]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
137
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
138
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
139 HTSLIB = [
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
140 'src/htslib/bgzf.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
141 'src/htslib/faidx.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
142 'src/htslib/hfile.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
143 'src/htslib/hfile_net.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
144 'src/htslib/hts.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
145 'src/htslib/kfunc.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
146 'src/htslib/knetfile.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
147 'src/htslib/kstring.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
148 'src/htslib/regidx.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
149 'src/htslib/sam.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
150 'src/htslib/synced_bcf_reader.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
151 'src/htslib/tbx.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
152 'src/htslib/vcf.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
153 'src/htslib/vcfutils.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
154 'src/htslib/cram/cram_codecs.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
155 'src/htslib/cram/cram_decode.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
156 'src/htslib/cram/cram_encode.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
157 'src/htslib/cram/cram_index.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
158 'src/htslib/cram/cram_io.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
159 'src/htslib/cram/cram_samtools.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
160 'src/htslib/cram/cram_stats.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
161 'src/htslib/cram/files.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
162 'src/htslib/cram/mFILE.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
163 'src/htslib/cram/md5.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
164 'src/htslib/cram/open_trace_file.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
165 'src/htslib/cram/pooled_alloc.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
166 'src/htslib/cram/rANS_static.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
167 'src/htslib/cram/sam_header.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
168 'src/htslib/cram/string_alloc.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
169 'src/htslib/cram/thread_pool.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
170 'src/htslib/cram/vlen.c',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
171 'src/htslib/cram/zfio.c'
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
172 ]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
173
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
174 BAMqc_CFLAGS = ['-fpermissive','-O3','-std=c++11','-Wno-error=declaration-after-statement']
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
175 BAMqc_DFLAGS = [('_FILE_OFFSET_BITS','64'),('_LARGEFILE64_SOURCE',''),('_CURSES_LIB','1')]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
176 BAMqc_INCLUDES = ['./src/htslib']
9
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
177 BAMqc_HEADERS = ['./src/ezBAMQC']
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
178 BAMqc_EXTRA = ['build/lib.linux-x86_64-2.7/htslib.so']
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
179
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
180 htslib_CFLAGS = ['-Wno-error=declaration-after-statement']
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
181 htslib_HEADERS = ['./src/htslib','./src/htslib/htslib','./src/htslib/cram']
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
182 htslib_DFLAGS = [('_FILE_OFFSET_BITS','64'),('_USE_KNETFILE','')]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
183
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
184 setup(name = "ezBAMQC",
9
6610eedd9fae Uploaded
cshl-bsr
parents: 0
diff changeset
185 version = "0.6.7",
0
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
186 description = 'Quality control tools for NGS alignment file',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
187 keywords = 'Quality control BAM file',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
188 # make sure to add all the nessacary requires
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
189 dependency_links=['https://gcc.gnu.org/gcc-4.8/','https://www.r-project.org/','https://cran.r-project.org/web/packages/corrplot/'],
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
190 cmdclass = { 'install_data': wx_smart_install_data },
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
191 scripts = ["ezBAMQC"],
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
192 author = "Ying Jin",
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
193 author_email ="yjin@cshl.edu",
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
194 license='GPLv3',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
195 platforms = ['Linux'],
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
196 url='http://hammelllab.labsites.cshl.edu/software#BAMqc',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
197 long_description=readme(),
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
198 classifiers=[
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
199 'Development Status :: 4 - Beta',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
200 'Natural Language :: English',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
201 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
202 'Topic :: Scientific/Engineering :: Bio-Informatics',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
203 'Intended Audience :: Science/Research',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
204 'Programming Language :: Python :: 2.7',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
205 'Programming Language :: C++',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
206 'Operating System :: Unix',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
207 ],
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
208 zip_safe = False,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
209 include_package_data=True,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
210 ext_modules = [
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
211 Extension('htslib',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
212 sources = HTSLIB,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
213 include_dirs = htslib_HEADERS,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
214 extra_compile_args = htslib_CFLAGS,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
215 define_macros = htslib_DFLAGS,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
216 libraries=['z']
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
217 ),
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
218 Extension('libBAMqc',
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
219 sources = BAMQC_SOURCE,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
220 extra_compile_args = BAMqc_CFLAGS,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
221 include_dirs = BAMqc_HEADERS + htslib_HEADERS,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
222 extra_objects = BAMqc_EXTRA,
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
223 define_macros = BAMqc_DFLAGS
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
224 )
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
225 ]
dfa3745e5fd8 Uploaded
youngkim
parents:
diff changeset
226 )