forked from simon-anders/htseq
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
70 lines (59 loc) · 2.35 KB
/
setup.py
File metadata and controls
70 lines (59 loc) · 2.35 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
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
import sys
import os.path
try:
from setuptools import setup, Extension
except ImportError:
sys.stderr.write( "Could not import 'setuptools', falling back to 'distutils'.\n" )
from distutils.core import setup, Extension
if sys.version_info[0] < 2 and sys.version_info[1] < 5:
sys.stderr.write( "Error in setup script for HTSeq:\n" )
sys.stderr.write( "You need at least version 2.5 of Python to use HTSeq.\n" )
sys.exit( 1 )
if sys.version_info[0] >= 3:
sys.stderr.write( "Error in setup script for HTSeq:\n" )
sys.stderr.write( "Sorry, this package does not yet work with Python 3.\n" )
sys.stderr.write( "Please use Python 2.x, x>=5.\n" )
sys.exit( 1 )
try:
import numpy
except ImportError:
sys.stderr.write( "Setup script for HTSeq: Failed to import 'numpy'.\n" )
sys.stderr.write( "Please install numpy and then try again to install HTSeq.\n" )
sys.exit( 1 )
numpy_include_dir = os.path.join( os.path.dirname( numpy.__file__ ), 'core', 'include' )
setup( name = 'HTSeq',
version = file("VERSION").readline().rstrip(),
author = 'Simon Anders',
author_email = 'sanders@fs.tum.de',
url = 'http://www-huber.embl.de/users/anders/HTSeq/',
description = "A framework to process and analyze data from " +
"high-throughput sequencing (HTS) assays",
classifiers = [
'Development Status :: 5 - Production/Stable',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Operating System :: POSIX',
'Programming Language :: Python'
],
requires = [ 'numpy', 'python (>=2.5, <3.0)' ],
py_modules = [
'HTSeq._HTSeq_internal',
'HTSeq.StepVector',
'HTSeq._version',
'HTSeq.scripts.qa',
'HTSeq.scripts.count'
],
ext_modules = [
Extension( 'HTSeq._HTSeq',
['src/_HTSeq.c'], include_dirs=[numpy_include_dir], extra_compile_args=['-w'] ),
Extension( 'HTSeq._StepVector',
['src/StepVector_wrap.cxx'], extra_compile_args=['-w'] ),
],
scripts = [
'scripts/htseq-qa',
'scripts/htseq-count',
]
)