forked from victor-gil-sepulveda/pyProCT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
144 lines (135 loc) · 5.95 KB
/
Copy pathsetup.py
File metadata and controls
144 lines (135 loc) · 5.95 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
"""
Created on 25/02/2013
@author: victor
"""
if __name__ == '__main__': # Compatibility with sphynx
from setuptools import setup, Extension
from Cython.Build import cythonize
import numpy
import distutils.sysconfig
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
include_dirs = [numpy.get_include(),
distutils.sysconfig.get_python_inc()]
cython_extensions = [
Extension(
'pyproct.clustering.algorithms.dbscan.cython.cythonDbscanTools',
['pyproct/clustering/algorithms/dbscan/cython/cythonDbscanTools.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.algorithms.spectral.cython.spectralTools',
['pyproct/clustering/algorithms/spectral/cython/spectralTools.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.cohesion',
['pyproct/clustering/evaluation/metrics/cython/cohesion.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.silhouette',
['pyproct/clustering/evaluation/metrics/cython/silhouette.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.graph.tools',
['pyproct/clustering/evaluation/metrics/cython/graph/tools.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.graph.ratioCut',
['pyproct/clustering/evaluation/metrics/cython/graph/ratioCut.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.graph.minMaxCut',
['pyproct/clustering/evaluation/metrics/cython/graph/minMaxCut.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
),
Extension(
'pyproct.clustering.evaluation.metrics.cython.graph.nCut',
['pyproct/clustering/evaluation/metrics/cython/graph/nCut.pyx'],
include_dirs=include_dirs,
extra_compile_args=["-O3", "-ffast-math"]
)
]
setup(
name='pyProCT',
version='1.7.3',
description='pyProCT is an open source cluster analysis software especially adapted for jobs related with structural proteomics',
author='Victor Alejandro Gil Sepulveda',
author_email='victor.gil.sepulveda@gmail.com',
url='https://github.com/victor-gil-sepulveda/pyProCT',
license = 'LICENSE.txt',
long_description = read('README.md'),
long_description_content_type='text/markdown',
packages=[
'pyRMSD',
'pyproct',
'pyproct.clustering',
'pyproct.clustering.algorithms',
'pyproct.clustering.algorithms.dbscan',
'pyproct.clustering.algorithms.dbscan.cython',
'pyproct.clustering.algorithms.gromos',
'pyproct.clustering.algorithms.hierarchical',
'pyproct.clustering.algorithms.kmedoids',
'pyproct.clustering.algorithms.random',
'pyproct.clustering.algorithms.spectral',
'pyproct.clustering.algorithms.spectral.cython',
'pyproct.clustering.evaluation',
'pyproct.clustering.evaluation.analysis',
'pyproct.clustering.evaluation.metrics',
'pyproct.clustering.evaluation.metrics.cython',
'pyproct.clustering.evaluation.metrics.cython.graph',
'pyproct.clustering.filtering',
'pyproct.clustering.protocol',
'pyproct.clustering.protocol.exploration',
'pyproct.clustering.protocol.refinement',
'pyproct.clustering.selection',
'pyproct.data',
'pyproct.data.handler',
'pyproct.data.handler.featurearray',
'pyproct.data.handler.protein',
'pyproct.data.matrix',
'pyproct.data.matrix.featurearray',
'pyproct.data.matrix.combination',
'pyproct.data.matrix.protein',
'pyproct.data.matrix.protein.cases',
'pyproct.data.matrix.protein.cases.rmsd',
'pyproct.data.matrix.protein.cases.euclidean',
'pyproct.driver',
'pyproct.driver.observer',
'pyproct.driver.results',
'pyproct.driver.scheduling',
'pyproct.driver.time',
'pyproct.driver.workspace',
'pyproct.postprocess',
'pyproct.postprocess.actions',
'pyproct.postprocess.actions.confSpaceComparison',
'pyproct.tools'
],
include_dirs = include_dirs,
ext_modules=cythonize(cython_extensions,
compiler_directives={"language_level": "3"}),
install_requires=[
#"pyRMSD>=4.0.0",
#"pyScheduler>=0.1.0",
"fastcluster>=1.1.6",
"ProDy>=1.4.2",
"numpy>=1.6.1",
"scipy>=0.9.0",
"scikit-learn>=0.12",
"Pillow>=2.6.2",
"matplotlib>=1.1.1rc",
"mpi4py>=1.3"
]
)