forked from westpa/westpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
157 lines (130 loc) · 4.88 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
import sys
from setuptools import setup, Extension, find_packages
import versioneer
def extensions():
from Cython.Build import cythonize
from numpy import get_include as np_get_include
np_inc = np_get_include()
common_cflags = [
'-O3',
]
fasthist_module = Extension(
'westpa.fasthist._fasthist',
sources=['src/westpa/fasthist/_fasthist.pyx'],
include_dirs=[np_inc],
extra_compile_args=common_cflags,
)
trajtree_module = Extension(
'westpa.trajtree._trajtree',
sources=['src/westpa/trajtree/_trajtree.pyx'],
include_dirs=[np_inc],
extra_compile_args=common_cflags,
)
mclib_module = Extension(
'westpa.mclib._mclib', sources=['src/westpa/mclib/_mclib.pyx'], include_dirs=[np_inc], extra_compile_args=common_cflags
)
binning_module = Extension(
'westpa.core.binning._assign',
sources=['src/westpa/core/binning/_assign.pyx'],
include_dirs=[np_inc],
extra_compile_args=common_cflags,
)
kinetics_module = Extension(
'westpa.core.kinetics._kinetics',
sources=['src/westpa/core/kinetics/_kinetics.pyx'],
include_dirs=[np_inc],
extra_compile_args=common_cflags,
)
reweight_module = Extension(
'westpa.core.reweight._reweight',
sources=['src/westpa/core/reweight/_reweight.pyx'],
include_dirs=[np_inc],
extra_compile_args=common_cflags,
)
exts = [fasthist_module, trajtree_module, mclib_module, binning_module, kinetics_module, reweight_module]
exts = cythonize(exts, language_level=sys.version_info[0])
return exts
console_scripts_core = [
'w_fork = westpa.cli.core.w_fork:entry_point',
'w_states = westpa.cli.core.w_states:entry_point',
'w_run = westpa.cli.core.w_run:entry_point',
'w_truncate = westpa.cli.core.w_truncate:entry_point',
'w_init = westpa.cli.core.w_init:entry_point',
'w_succ = westpa.cli.core.w_succ:entry_point',
]
console_scripts_tools = [
'w_direct = westpa.cli.tools.w_direct:entry_point',
'w_dumpsegs = westpa.cli.tools.w_dumpsegs:entry_point',
'w_postanalysis_matrix = westpa.cli.tools.w_postanalysis_matrix:entry_point',
'w_select = westpa.cli.tools.w_select:entry_point',
'w_ntop = westpa.cli.tools.w_ntop:entry_point',
'w_kinavg = westpa.cli.tools.w_kinavg:entry_point',
'w_eddist = westpa.cli.tools.w_eddist:entry_point',
'w_assign = westpa.cli.tools.w_assign:entry_point',
'w_trace = westpa.cli.tools.w_trace:entry_point',
'w_crawl = westpa.cli.tools.w_crawl:entry_point',
'w_kinetics = westpa.cli.tools.w_kinetics:entry_point',
'w_fluxanl = westpa.cli.tools.w_fluxanl:entry_point',
'w_reweight = westpa.cli.tools.w_reweight:entry_point',
'w_pdist = westpa.cli.tools.w_pdist:entry_point',
'w_ipa = westpa.cli.tools.w_ipa:entry_point',
'w_bins = westpa.cli.tools.w_bins:entry_point',
'w_stateprobs = westpa.cli.tools.w_stateprobs:entry_point',
'w_postanalysis_reweight = westpa.cli.tools.w_postanalysis_reweight:entry_point',
'ploterr = westpa.cli.tools.ploterr:entry_point',
'plothist = westpa.cli.tools.plothist:entry_point',
'w_multi_west = westpa.cli.tools.w_multi_west:entry_point',
'w_red = westpa.cli.tools.w_red:entry_point',
]
console_scripts = console_scripts_core + console_scripts_tools
CLASSIFIERS = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Cython",
]
INSTALL_REQUIRES = [
"numpy >= 1.16.0, <2",
"scipy >= 0.19.1",
"h5py >= 2.10",
"mdtraj >= 1.9.5",
"pyyaml",
"pyzmq",
"matplotlib",
"blessings",
"ipykernel",
"tqdm",
"pandas",
"tables",
]
EXTRAS_REQUIRE = {
"tests": ["pytest", "pytest-cov", "pytest-rerunfailures", "pytest-timeout"],
"mpi": ["mpi4py"],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"] + ["pre-commit"]
metadata = dict(
name='westpa',
url='http://github.com/westpa/westpa',
license='MIT',
long_description=open('README.rst', encoding='utf8').read(),
version=versioneer.get_version(),
keywords='',
cmdclass=versioneer.get_cmdclass(),
python_requires=">=3.6",
zip_safe=False,
classifiers=CLASSIFIERS,
entry_points={'console_scripts': console_scripts},
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
package_data={},
packages=find_packages(where='src'),
package_dir={"": "src"},
description='WESTPA is a package for constructing and running stochastic simulations using the "weighted ensemble" approach of Huber and Kim (1996).',
)
if __name__ == '__main__':
metadata['ext_modules'] = extensions()
setup(**metadata)