This repository has been archived by the owner on Aug 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
97 lines (92 loc) · 2.95 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
from setuptools import setup
from distutils.core import Extension
from sys import exit as sys_exit
import versioneer
try:
from Cython.Distutils import build_ext
except ImportError:
print "ERROR - please install the cython dependency manually:"
print "pip install cython"
sys_exit( 1 )
try:
from numpy import get_include as np_get_include
except ImportError:
print "ERROR - please install the numpy dependency manually:"
print "pip install numpy"
sys_exit( 1 )
ext_lse = Extension(
"pytram.lse",
sources=["ext/lse/lse.pyx", "ext/lse/_lse.c" ],
include_dirs=[np_get_include()],
extra_compile_args=["-O3"]
)
ext_dtram = Extension(
"pytram._dtram.ext",
sources=["ext/dtram/dtram.pyx", "ext/dtram/_dtram.c", "ext/lse/_lse.c" ],
include_dirs=[np_get_include()],
extra_compile_args=["-O3"]
)
ext_xtram = Extension(
"pytram._xtram.ext",
sources=["ext/xtram/xtram.pyx", "ext/xtram/_xtram.c" ],
include_dirs=[np_get_include()],
extra_compile_args=["-O3"]
)
cmd_class = versioneer.get_cmdclass()
cmd_class.update({'build_ext': build_ext})
setup(
cmdclass=cmd_class,
ext_modules=[
ext_lse,
ext_dtram,
ext_xtram
],
name='pytram',
version=versioneer.get_version(),
description='The TRAM package',
long_description='The python interface to the TRAM framework for estimating Markov state models from biased MD simulations.',
classifiers=[
'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Programming Language :: C',
'Programming Language :: Cython',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: Scientific/Engineering :: Chemistry',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Scientific/Engineering :: Physics'
],
keywords=[
'free energy',
'Markov state model',
'TRAM',
'dTRAM',
'xTRAM'
],
url='https://github.com/markovmodel/pytram',
author='The pytram team',
author_email='pytram@lists.fu-berlin.de',
license='Simplified BSD License',
setup_requires=[
'numpy>=1.7.1',
'cython>=0.15',
'setuptools>=0.6'
],
tests_require=[ 'numpy>=1.7.1', 'nose>=1.3' ],
install_requires=[ 'numpy>=1.7.1' ],
packages=[
'pytram',
'pytram._dtram',
'pytram._xtram'
],
test_suite='nose.collector',
scripts=[
'bin/dtram.py',
'bin/xtram.py'
]
)