-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
74 lines (66 loc) · 2.45 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import os
import sys
import imp
import numpy
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
try:
__doc__ = open('README.md').read()
except IOError:
pass
__file__ = './'
ROOT = 'isdhic'
LOCATION = os.path.abspath(os.path.dirname(__file__))
JUNK = ['CVS']
NAME = "isdhic"
VERSION = "0.1"
AUTHOR = "Michael Habeck"
EMAIL = "[email protected]"
URL = "http://www.uni-goettingen.de/de/444206.html"
SUMMARY = "Inferential Structure Determination of Chromosomes from Hi-C Data"
DESCRIPTION = __doc__
LICENSE = 'MIT'
REQUIRES = ['numpy', 'scipy', 'csb']
module = Extension('isdhic._isdhic',
define_macros = [('MAJOR_VERSION', '0'),
('MINOR_VERSION', '1'),
('PY_ARRAY_UNIQUE_SYMBOL','ISDHIC')],
include_dirs = [numpy.get_include(), './isdhic/c'],
extra_compile_args = ['-Wno-cpp'],
sources = ['./isdhic/c/_isdhicmodule.c',
'./isdhic/c/mathutils.c',
'./isdhic/c/forcefield.c',
'./isdhic/c/prolsq.c',
'./isdhic/c/nblist.c',
'./isdhic/c/rosetta.c',
])
os.environ['CFLAGS'] = '-Wno-cpp'
setup(
name=NAME,
packages=find_packages(exclude=('tests',)),
version=VERSION,
author=AUTHOR,
author_email=EMAIL,
url=URL,
description=SUMMARY,
long_description=DESCRIPTION,
license=LICENSE,
requires=REQUIRES,
ext_modules=[module] + cythonize("isdhic/*.pyx"),
include_dirs = [numpy.get_include(), './isdhic/c'],
cmdclass={'build_ext': build_ext},
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Software Development :: Libraries')
)